A bot which can play music and image when someone entered a voice channel.
pip install discord youtube_dl
Install FFmpeg
- Input GUILD ID, CHANNEL ID, Path of FFmpeg and BOT TOKEN in bgm_bot.
Guild ID and Channel ID is the text channel.
Bot will log someone enter a voice channel and show a image if has. - Run bgm_bot, then the config file will be generated.
- You can directly edit config.json.
Data format is below.
Add a new user, then add a new block.
" < Client ID > " :{
"bgm" : "< File name or Youtube Link : str>,"
"time": " <sec: int> ", # suggest 10 sec
"img" : " < File Name: str > "
}
- Use command in discrod.
!add_user USER_ID BGM TIME
- When any changes to config, run this command in discord to update.
!update_context
Currently, image could be added by editing config only.