PDBot is the official Discord bot for the Programmer's Den server. It provides many utilities for the management, moderation, and members of this server
Requirements (Debian)
apt install -y git build-essential libcurl4-openssl-dev cmake libsqlite3-dev
git clone "https://github.com/Cogmasters/concord.git"
cd concord/
make purge
make -j$(nproc) # or number of threads
make install
git clone "https://github.com/json-c/json-c.git"
cd json-c/
mkdir build
cd build/
cmake ../
make -j$(nproc) # or number of threads
make test
make install
Windows PDBot supports Microsoft Windows through compilation by Cygwin or Mingw64. Cygwin is recommended, and Mingw64 is currently untested.
Create a
bot.config
file in the root directory of the bot with the following contents:
Delete comments if copy and pasting from below or will not work!
{
"logging": {
"level": "trace",
"filename": "bot.log",
"quiet": false, // change to true to disable logs in console
"overwrite": false,
"use_color": true,
"http_dump": {
"enable": true,
"filename": "dump.json"
}
},
"discord": {
"token": "TOKEN", // place bot token here
"default_prefix": {
"enable": true,
"prefix": "./" // bot prefix
}
}
}
git clone "https://github.com/programmers-den/PDBot.git"
cd PDBot/
# You must create bot.config and paste in your token as defined in section 1.2 before running.
make -j$(nproc) # or number of threads
./main
The prefix is
./
Commands | Syntax |
---|---|
help | ./help |
icon | ./icon |
ping | ./ping |
stat | ./stat |
add_role_all_user | ./add_role_all_user ROLE_ID |
rm_role_all_user | ./rm_role_all_user ROLE_ID |
get_messages | ./get_messages |
update | ./update |
Slash command support
SQL database is now loaded at all times and is much more performant
- Add no-mic roles to users when they join a VC to access a hidden channel
- Implement blacklist words filter
- Add more information to stat command embed
- Add logs for channel events
- Add logs for role events
- Add logs for emoji events
- Add logs for moderation events