PsykoBot is a very simple Discord bot, with few features that you can run on your own ! The only needed thing is a computer !
- Play the Russian Roulette with yours friends.. But take care, that's hurt !
- Tables are flipped ? Don't worry, PsykoBot will put them down ┬─┬ ノ( ゜-゜ノ) !
- Fire on someone
You can run the bot on your own desktop, raspberry pi, or whatever running an unix like OS (windows 10 can with Ubuntu on Windows bash !)
IMPORTANT : You need node.js v6.0 or newer installed on your computer to run the bot.
# First, install git if you haven't installed it yet
$ sudo apt-get update && sudo apt-get install git
# Install discord.js, a nodejs module
$ npm install --save discord.js
# Clone the repository
$ git clone https://github.com/Psykotik/PsykoBot && cd ./PsykoBot
# Start the bot. Please go to #Configuration before starting the bot
$ node bot.js
If you need to install node
curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get update && sudo apt-get install -y nodejs npm
Note : Using node bot.js
will start the bot BUT if you run it using a remote server, the bot will shutdown instantly after closing he SSH connection. You can instead use screen to prevent it.
# sudo apt-get install screen if it's not installed.
$ screen node bot.js
The bot is very easy to configure. The only thing you need is a Discord Application Token. This token can be found on this page.
Help : If you don't really know how to get this token, you can check this.
Once you get the token, please fill the configExample.json with it and then, rename it to config.json.
{
"token": "This-is.my.Discord-token",
"prefix": ",",
"language": "english"
}
Note : Language can be set to english or french at the moment. Feel free to translate it and pull request your work !
Nothing hard here, just write ,help
to get help. The prefix can be changed on config.json before startup.