Skip to content

A simple bot command I made with discord.py so you can erase a majority of channels. It might be useful in case of your server being raided or some malicious staff

Giorgouis/discord-anti-nuker

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time

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 ", "

About

A simple bot command I made with discord.py so you can erase a majority of channels. It might be useful in case of your server being raided or some malicious staff

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages