Giter Club home page Giter Club logo

globalban's Introduction

Global Ban COG

This cog allows users to easily ban and unban people from selected servers all at once. It is designed to reduce the time it takes to manually ban a user from more than one server... especially when dealing with 10-50 servers.

This cog also makes sure that a user meant to be banned, stays banned, until unbanned. On larger servers, making sure that everyone banned stays banned is quite difficult. This makes it easy for staff to unban someone without the admins noticing. However, with this cog, the bot would automatically re-sync all the global bans every day, week, or month and 12 PM.

Installation

Git is required to install the cog files.

1. cd .../Red-DiscordBot/cogs/CogManager/cogs/ # Go to the directory that has Redbot installed.

2. git install https://github.com/dajkatal/globalban.git

3. Start Redbot

4. [p]load globalban

5. Done

Commands

- [p]globalban <name> or <name+discrim> or <mention> or <ID> # Bans a user from all connected servers.

- [p]globalunban <ID> # Unbans a user from all connected servers.

- [p]globalbans # Gives all the people who are banned.

- [p]bansync # Syncs all global bans across all servers.

- [p]syncedservers # Shows all the synced servers.

- [p]sync # Adds a server to the synced list if it is not already there and re-syncs all the global bans.

- [p]delsync # Removes a server from the synced server list.

Installing Redbot

Use the package manager pip to install Redbot.

pip install Red-DiscordBot

Difficulties

+ Missing some of the possible edge cases.
+ Finding the most optimal way of storing the data collected.

What I learnt

+ How to work with discord.py rewrite and redbot.
+ How to find the possible edge cases given a situation.
+ How to optimize and reformat code to make it faster and more efficient.

License

MIT

globalban's People

Contributors

dajkatal 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.