Giter Club home page Giter Club logo

antiscambot's Introduction

ScamGuard AntiScam Bot

This is a Discord bot that bans scammers who offer unsolicited commissions to users of a discord server.

These scammers are a scourge on our Discord communities. Unfortunately, unless they are banned in all relative servers, they’ll hop onto the next server and then attempt to scam people from there next.

To stop this from happening, this bot shares a ban list of known scammers to any servers it is activated in such that the scammers are unable to contact anyone.

This bot is powered via community reporting, trusted verification, and complete transparency in all actions.

You can read more on the website here!


Configurations to Run the Bot

Environment Vars

To start the bot locally, create a .env file in the current directory with the following environment variables:

DISCORD_TOKEN="your discord bot token"  
DATABASE_FILE="a path to your sql file"  
CONFIG_FILE="a path to your config file"  
API_KEYS="a path to the file with api keys for subinstance bots to spin up"
BACKUP_LOCATION="a path to a directory to store your backup sql file"  
DEVELOPMENT_MODE="true if you want to test without banning, false to ban people"  

Here is an example of a .env file.

DISCORD_TOKEN="0"  
DATABASE_FILE="database.db"  
CONFIG_FILE="config.json"
API_KEYS="apikeys.json"    
BACKUP_LOCATION="backup/"  
DEVELOPMENT_MODE="true"  

You can also have these environment variables set directly

Config.json

By default, the config.json file is preconfigured with IDs specifically for the TAG server.

To test the bot on your own Discord server for debugging purposes, here's how you can get the IDs for the server, roles, and channels

  • Server ID: Right click your server icon and click on Copy Server ID
  • Role ID: Go to your Server Settings -> Roles -> "..." button for the role -> Copy Role ID
  • Channel ID: Right click the channel and click on Copy Channel ID

antiscambot's People

Contributors

socksthewolf avatar user4752 avatar wong-michael avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.