simple bot that says hello and MP rules. Built with nodejs and the discordjs library.
-
You need
git
andnodejs
on your system -
create a
user bot
It will have abot ID
and abot token
.You can find all that on the discord website :
-
Then authorize your bot to your discord with this link :
https://discordapp.com/oauth2/authorize?&client_id=BOT_ID&scope=bot
(where
BOT_ID
is replaced by your bot id) -
Find your id by right-clicking yourself and click
copy ID
in the menu -
You must then create a config file named
config.json
like so :{ "botToken": "my.bot.token", "adminId": "245646465465" }
(where
my.bot.token
is replaced by your bot token, and245646465465
is your personnal discord id).
# clone the repo and go into the folder
git clone https://github.com/kigiri/hello-bot && cd hello-bot
# install the required modules (discord.js here)
npm install
# start the bot
node bot