Robert is a discord bot made using the discot framework.
- Type !cnfact for a random Chuck Norris fact
- Type !weather {city} for weather informations about the given city
- !weather {city} for weather informations about the given city
- !cnfact for a random Chuck Norris fact
- !ping to get a "pong" answer
- !play {url} to play a youtube audio in the current channel
- !stop to stop the bot from playing audio
- !mock {text} to mock a sentence like the famous spongebob meme
Follow these steps to run the bot locally :
git clone https://github.com/CorentinTh/robert.git
cd robert
npm install
npm run build && npm start # compile typescript and run node
Note that you need some API Keys :
DISCORD_TOKEN
: A Discord API KeyWEATHER_KEY
: An Open Weather Map API Key
The bot actually uses the following packages :
- ffmpeg-static: 3.0.0
- fluent-ffmpeg: 2.1.14
- node: 13.7.0
- typescript: 3.7.5
- axios: 0.20.0
- discot: 1.3.1
- fluent-ffmpeg: 2.1.2
- node-opus: 0.3.3
- ytdl-core: 1.0.7
- eslint": 7.9.0
To verify your code, use :
npm run lint