Giter Site home page Giter Site logo

coodos / disguard Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 3.0 13.97 MB

One bot to rule them all, one bot to find them, one bot to bring them all in the darkness and bind them

License: GNU General Public License v2.0

TypeScript 100.00%
discord bot hacktoberfest hacktoberfest-accepted

disguard's Introduction

Disguard: A bot to rule them all

Introduction

DisGuard is a moderation bot which is a result of my obsession with linux and linux commands.

The idea is that everyone in the server would have an equal role with no difference between mods and regular users visible to a regular user. This would make the users behave as they would in a normal conversation and not how they would thinking someone is constantly moderating them.

Whenever moderation is needed, a mod or an admin who has the 'sudoers' role can execute $su to get the privileges required for moderation and will be displayed seprately.

How it is linked to linux

This is bot is based on the principle of linux. The way linux has every user as a standard user and the system admin is no different and whenever the system admin wants to run any command which requires higher privledges they can get into root with $su, the same way you can get the highest privledges after running $su else, everyone's a normal user.

To prevent any normal user from accessing root, 'sudo' has a sudoers file where the users who can access sudo are mentioned, the same way, you give sudoers role to the people who can access the $su command.

How to get it?

You can invite the bot by clicking the link below. Invite the Bot

Or if it doesn't work, you can copy paste it in your browser: https://discord.com/api/oauth2/authorize?client_id=851740851100319744&permissions=8&scope=bot

Commands List

Command Description Example
$su It gives the user the role of superuser, hence they are now able to manage the server and members $su
$kick Kicks the user pinged $kick @joe
$ban Bans the user pinged $ban @joe
$mute Mutes the pinged user $mute @joe
$unmute Unmutes the pinged user $unmute @joe
$exit Exits out of the superuser role $exit
$config creates roles for the server $config
$warn issue a warning to a pinged user $warn @joe
$warning See the history of previous infractions of a user $warning @joe
$man To get help related to a specific command type $man ban
$purge To purge messages of specified count in given channel $purge --count 69

License

This code is licensed under GPL v2.0. You can find the full License in LICENSE file.

Contribution

You can contribute by opening an issue if you find a bug. If you want to contribute code, then you may first open an issue and ask it to be assigned it to you before you start coding it and after it is assigned to you then you may code it and send a PR.

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.