Simple discord bot to play short sound.
日本語のREADMEはこちらです
What things you need to setup the software.
- ffmpeg
- python3 >= 3.6
- pip
- pynacl == 1.3.0
- discord == 1.0.1
- pyyaml == 5.1.2
- docker
Run ./script/setup.sh
.
Run ./script/setup_with_docker.sh
.
Open ./discord.env
and write token referring to the following.
DISCORD_BOT_TOKEN=***
Place sound files in ./se
directory.
Open ./config/command.yml
, write command config in the format command:filepath
.
hoge: 'hoge.mp3'
fuga: 'category/fuga.mp3'
Run ./scirpt/run.sh
.
Run ./scirpt/run_with_docker.sh
.
Each command must be entered with a prefix.
(For example, to exec help command with the default prefix, type $ se help
)
Show help.
Send ping to bot.
Show available sound list.
Reload command config and update sound list.
Disconnect from voice channel.
Play sound.
Config file is placed in ./config/bot.yml
Sound playback volume. (default: 0.3
)
Automatically disconnect from the voice channel after the specified seconds immediately after the last voice playback. (default: 10
)
Sound command prefix. (default: $se
)
The path of the directory where sound files are placed. (default: ./se
)
This project is licensed under the MIT License - see the LICENSE.md file for details