Git Product home page Git Product logo

discord-anti-nuker's Introduction

discord-anti-nuker

A simple bot command I made with discord.py so you can prevent or "fix" your server from a raid.

you are gonna need a discord bot token

How to use

Copy the code Make sure you have python 3 installed

pip install discord

Copy your discord bot token, you can create a bot and get the bot token at https://discord.com/developers/applications

go to the last line of the code and replace client.run(TOKEN) with client.run("your token here ctrl+v") or client.run('your token here ctrl+v')(so it's on a string)

run the code

Commands

Prefix: ac!

delete_messages message

deletes new messages that are equal to message

delete_channels channel_name exceptions

channel_name: name of the channels you want to delete
exceptions: channel IDs from channels with the same name you might not want to delete

if more than 1, seperate with ', '

delete_roles role_name exceptions

role_name: name of the roles you want to delete
exceptions: role Ids from roles with the same name you might not want to delete
if role contains spaces use --exc and then exception role IDs(if none use 0)

Examples

Delete roles that have spaces

roles: new role, new role

to delete both: ac!delete_roles new role --exc 0

to delete only one: ac!delete_roles new role --exc role-id

Delete roles that have no spaces

roles: new, new

to delete both: ac!delete_roles new

to delete one: ac!delete_roles new role-id

If more than 1 exception IDs, seperate with ", "

discord-anti-nuker's People

Contributors

giorgouis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.