Skip to content

programmers-den/PDBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. ~$ PDBot

PD logo

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

1.1. Table of contents

1.2. Dependencies and install instructions

Requirements (Debian)

apt install -y git build-essential libcurl4-openssl-dev cmake libsqlite3-dev

concord

git clone "https://github.com/Cogmasters/concord.git"

cd concord/
make purge
make -j$(nproc) # or number of threads
make install

json-c

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.

1.3. Bot config file

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
    }
  }
}

1.4. Compiling and running the bot

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

1.5. Commands

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

1.6. Latest major change

Slash command support

1.7. Latest minor change

SQL database is now loaded at all times and is much more performant

1.8. To-do

  • 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

About

Programmer's Den's official discord bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published