Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 986 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 986 Bytes

omgbot

omgbot is a Discord bot inspired by the Discord team's original example bot, airhorn.solutions.

It provides a set of commands, each mapped to "short" sound clips. When a command is issued, the following occurs:

  1. A sound is chosen for the given command.
  2. If the user issuing the command is in a voice channel, the bot joins that voice channel.
  3. The bot plays the sound in the voice channel or uploads it to the text channel the user issued the command in.
  4. If the bot joined a voice channel to play the sound, it leaves the channel.

Usage

Set your API token as the expected environment variable:

DISCORD_TOKEN=your-api-key

Then run npm start.

start.sh accomplishes the same task but endeavors to make doing so easier on a production box.

Development Notes

  1. Ensure that npm run lint doesn't report any issues.