Simple Discord bot for The Legend Gaming Community. Can play music from Youtube link in Pukan voice channel and play short audio jokes if player Jager online and joined to voice channel.
- Clone repo and change working directory.
- Run
npm install
. - Create and fill
config.json
file in project root directory. - Run bot by command
npm run start
.
Params in config.json
:
"token"
(required, string) - Discord bot token."pukanAudio"
(required, string, URL) - link to youtube video with music you want to play in specific voice cahnnel (e.g. Pukan)."pukanChannelID"
(required, string) - Discord ID of specific voice channel where music will play when any user connect to it."adminID"
(required, string) - Discord ID of guild admin user used for error reports."jagerID"
(string) - Discord user ID for which jokes will be played according to the interval (e.g. Jager)."jagerJokes"
(array of strings) - list of paths to audio OGG files with jokes. Bot will get random from this list."jagerJokesInterval"
(integer) - interval in minites when the jokes will be played.
Full config.json
example:
{
"token": "DISCORD_BOT_TOKEN",
"pukanAudio": "LINK_TO_YOUTUBE_VIDEO",
"pukanChannelID": "PUKAN_CHANNEL_ID",
"adminID": "GUILD_ADMIN_ID_FOR_ERROR_REPORTS",
"jagerID": "JAGER_ID_FOR_JOKES",
"jagerJokes": ["audio/joke.ogg", "audio/another_joke.ogg"],
"jagerJokesInterval": 20
}
- Node.js >= 14.2.0
- OS: Windows, Linux or Mac OS.