项目作者: jankcat

项目描述 :
ShOrT dEsCrIpTiOn Of ThIs RePoSiToRy
高级语言: JavaScript
项目地址: git://github.com/jankcat/mocking-bot-discord.git
创建时间: 2018-07-22T02:52:50Z
项目社区:https://github.com/jankcat/mocking-bot-discord

开源协议:MIT License

下载


mocking-bot-discord

Example

ExAmPlE

Mocking Criteria

  • Listens for :mocking: reaction on messages, responds by mocking the message.
  • Example emoji is included in this repo (see: mocking.png). Bot will add mocking emoji on server-join if it does not exist
  • Only responds to the first mocking reaction and reacts with mocking itself after a user does, to prevent repeat mockings
  • Ignores bot reactions & bot messages
  • Only goes back 7 messages per channel to prevent out-of-context mocking
  • Ignores messages over a day old
  • Ignores messages that are just valid URLs, as per https://github.com/ogt/valid-url

Other Things

It does this:

heynow

And this:

yourearockstar

Also:

  1. /prequel some search terms
  2. /guilty

Usage

Add by visiting: https://discordapp.com/oauth2/authorize?client_id=470425725808279573&scope=bot&permissions=1073863744

Roll-your-own

  1. Clone the repo
  2. Have docker and docker-compose installed and good-to-go
  3. Create a bot in the Discord developer console
  4. export DISCORD_TOKEN=YOUR_TOKEN
  5. docker-compose up -d