7

GitHub - MRDGH2821/Discord-Ban-Utils-Bot: Discord Ban Utilities for Mutual Serve...

 2 years ago
source link: https://github.com/MRDGH2821/Discord-Ban-Utils-Bot
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Bot version 3.0 released! Please read Caution notes!

Discord-Ban-Utils-Bot

Discord Ban Utilities for Mutual Servers!

Currently the Bot is in development. Bot development is supposedly finished. And can be used publicly!

Hosted on my personal Raspberry Pi 2B+ Google Cloud VM Instance E2.

Invite Link - click here

Join my server - https://discord.gg/MPtE9zsBs5

This bot project was inspired by the project here

Bot Permissions

Firebase integration

With v2.4, the bot now comes with logging feature with firebase integration & custom events. So to setup logging follow these steps:

  1. Create a Firebase project.
  2. Go to project settings
  3. In Firebase Admin SDK section, click on Node.js & finally on Generate new private key.
  4. Copy this private key (i.e. the json file which gets downloaded) into ./lib/firebase-service-acc/

For more info check here

Hosting

  1. Clone this repo.
  2. Create a file named .env.prod & put the given text -
TOKEN = insert bot token
CLIENTID = insert bot clientID
GUILDID = insert one of your server's ID

You can also copy .env.sample file and rename it to .env.prod.

  1. Install dependencies by using npm install.
  2. Use npm start to run the bot code.

For more info click here & here

You may also use pm2. Check the guide here

pm2 start ban-utils-bot.sh --name "Ban Utils Bot" --watch

How to update self-hosted version?/How to reset the Bot code?

Use the following command:

git reset --hard
git pull

License

MIT

Feel free to make your own improved version of the bot!

Made using Canva. See here in high resolution.

Note from developer:

I still think that this bot is far from crash proof. I have done enough testing, but still some edge cases might be left out. Bot has become nearly crash proof. And will also show what the error was. Still I have configured my bot to restart on crash (using pm2), it would be nice if you report the issue ASAP to me.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK