git clone https://github.com/msniveau/discord_cleverbot.git
cd discord_cleverbot
npm install
- Rename the file config.ini.dist to config.ini
- Create a new app at the developer section of discord
- Enable the Bot functions
- Paste the token of the bot in the config.ini
- Create a new token on the cleverbot website
- Paste the access token in the config.ini
I'd recommend using the screen command to keep this window open
screen -dmS cleverbot npm start
Or if you want to use forever:
npm install forever -g
forever start client.js
You can test the bot if you add this bot to your server To add your bot to your server, you can use the following url to select the server the bot should be running on:
discordapp.com/oauth2/authorize?client_id=clientid&scope=bot&permissions=0
The bot responds to every message in every channel which starts with "?". Normal messages will be ignored. Every channel has it's own conversation history