A discord bot that uses the owen-wilson-wow-api to serve wows.
Click here to owen-wilson-discord
to your server.
Play a random wow in your current voice channel. Similar to voice random but without any options exposed.
Play a random wow in your current voice channel.
Optionally filter results based on the following options:
Option | Value | Default | Required |
---|---|---|---|
results | number | 1 | no |
year | number | - | no |
movie | string | - | no |
director | string | - | no |
wowsInMovie | string | - | no |
sort | movie, release_date, year, director, number_current_wow | movie | no |
direction | asc,desc | asc | no |
Play a specific wow in your current voice channel.
Option | Value | Default | Required |
---|---|---|---|
index | number | - | yes |
Reply with a random video wow.
Reply with a list of directors where a wow is said.
Reply with a list of moview where a wow is said.
Most dependencies are installed via npm
with the exception of ffmpeg
. It can be installed with your favorite package manager, downloaded from their website, or you can npm i -E ffmpeg-static
as a slower alternative.
There are some environment variables that are expected to be set. You can create a .env
file in the project root which is loaded by dotenv
. It is not committed to git to keep the data private.
Variable | Value | Environment | Required |
---|---|---|---|
APPLICATION_ID |
your-application-id |
Both | Yes |
TOKEN |
your-bot-token |
Both | Yes |
NODE_ENV |
development,production |
N/A | No |
CLIENT_ID |
your-client-id |
Development | No |
GUILD_ID |
your-test-guild-id |
Development | No |
DEBUG |
true,false |
Both | No |
NODE_ENV
determines whether the bot is updates slash commands for a specific guild or all guilds. Use production
when deploying for public use.
npm run build
This project uses typescript. Before running the bot we must compile the files to javascript.
There are two start scripts named according to their usage.
npm run start:dev
This development script uses nodemon to enable file compilation and app restart when a file in the source directory is updated.
npm run start:prod
This production script uses pm2 to enable background process and automatic restart on crash.
npm run deploy
Deploy will build and start the bot in production mode.
Using Discord's OAuth2 URL Generator, generate a url with the following:
Scopes:
- bot
Bot Permissions:
- Connect
- Speak