A Discord bot that plays sounds from the My Talking Ben app in voice channels. A live version is hosted here
- Create a new Discord Bot here and invite it to your server
- Create a file named
.env
in the root of your directory and put the following inside:
DISCORD_TOKEN = <put your discord token here>
- Install node packages
npm i
- Run the bot
node .
- Join a voice channel and type this command in any text channel:
!startben
.
In the project root directory, there is a file named config.json
. Below are the configurable settings and their description:
Your bot's Discord token.
If true
, the bot will instead wait for a user to speak then respond rather than wait a random time between 1 to 4 seconds.
If true
, the bot will automatically join a voice channel when a user joins. Please note if the bot is in another channel already, it won't move.