Skip to content

MButcho/discord-cr-bot

Repository files navigation

Discord bot for Cyber Republic

Special thanks to @RyanC for letting me use his Telegram bot source @ https://github.com/racollette/elabot

Installing bot

Create application and a bot

Use https://discord.com/developers/applications

Add bot to your server with following rights

Scope

  • bot
  • applications.commands

Bot Permissions

  • Send Messages
  • Embed Links
  • Read Message History

Clone repository

git clone https://github.com/MButcho/discord-cr-bot

Install latest NodeJS

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs

More on https://github.com/nodesource/distributions/blob/master/README.md#debinstall

Install dependencies

npm install
npm install discord.js

Create config.json in cloned folder

{
  "token": "<your bot token>",
  "clientId": "<your application ID>",
  "guildId":  "<your server ID>"
}

Register commands on server

node deploy-commands.js

Start bot

node index.js

Thank you and enjoy!

Any donation to ELA address EUSMsck3svNiacva9LfwrLfbvNnUU27z77 or mbutcho (CryptoName) is much appreciated.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published