GithubHelp home page GithubHelp logo

raidbot's Introduction

raidbot

This bot helps moderators to stop and clean up raids.
This bot does NOT prevent raid or stop raids itself.
It always needs to be triggered by a moderator.

invite the bot:
https://discordapp.com/oauth2/authorize?client_id=528531827246366760&permissions=268435460&scope=bot
help keep this bot online:
https://www.paypal.me/silboydens (with raidbot anywhere in the description)
contact me:
i'm @Sil#5262 on discord and i can usually be found in the MEE6 bot support server (discord.gg/mee6)

commands for dm

commands in dm have no prefix, just send the command

changelog

sending changelog in a dm to the bot will let you opt-in or opt-out of receving updates

help

send anything that the bot does not understand as a command and it will give you the help message.... link to this

commands for guilds

all commands start with @raidbot#0165 (or when selfhosting, with the bots name)
@raidbot#0165 command arguments

raid

@raidbot raid message <insert message here>
@raidbot raid user <insert username here>
will ban all users who talked in the last 5 minutes (configurable) with a message/username that starts with

lockdown

@raidbot lockdown
@raidbot lockdown off
enables or disables lockdown
you need to have @everyone in roles set to allow send messages and in channels on neutral or denied

config

@raidbot config [list/add/remove/set] module setting [value]
(module means command)

to add roles that can use the commands:
@raidbot config add raid allowed_roles <role_here>
@raidbot config add lockdown allowed_roles <role_here>
(you need admin perms to use the "config" command, you can't set allowed roles for config)

TODO

slowmode add more to readme
config input validation
config add list of users who should get dm's on command usage
split in even more files
website for config? (maybe)

selfhosting

setup

run the commands:

git clone [email protected]:SilBoydens/raidbot.git
cd raidbot
npm i

copy raidbot_default.json to raidbot.json and fill in your userID
copy example.env to .env and fill in the needed values
for DB_file i would recomend using a ramdisk as there is no need to write this to the disk, if you want to use a ramdisk, read ## ramdisk

running the bot

just run

node ./raidbot.js

there is no need to set up databases or anything else

ramdisk

a ramdisk is a part of your ram that get's dedicated as a virtual disk, this reads and writes really fast but is volitile, meaning on a blackout you lose the content.

execute these commands (you can change /ram)

sudo mkdir -p /ram
sudo mount -t tmpfs -o size=2048M tmpfs /ram

and add this at the end of /etc/fstab

none /ram tmpfs nodev,nosuid,noexec,nodiratime,size=2048M 0 0

and now you have a ramdisk at /ram

raidbot's People

Contributors

silboydens avatar thomasmuur 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.