AFKBot
A well, Very simple AFK bot for discord that written in NodeJS with Discord.js Library.
Story of this project
First time, I think writting a AFK bot code is very hard to do in Discord.js, But i'm wrong, I think multiple time how to do it and finally, I made a very simple code line. I hope you guys enjoy it.
Setting everything up
git clone https://github.com/Yonle/AFKBot
cd AFKBot
npm install --save-optional
Configuration
For Heroku user, Go to App Settings then add TOKEN in Config Vars section with your bot token as the value.
For self-host user, Install dotenv
package and fill all required fields in .env.example
files. Then rename the file as .env
# Isn't that simple? 0 Third party, Say what now? =)
# Rename this file as .env after adding your token. Then run after your job done, Good luck....
TOKEN=
Running this bot
node index.js
# Or
npm start
To make @mention, @mention is busy
does not gets @invalid-user
response, Enable Server Members Intend in your discord OAUTH App.
Database Support
This repo is using Map()
. To get a experience of full database support, Use enmap