This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| """Script to unregister discord application commands""" | |
| import sys | |
| from getpass import getpass | |
| from time import sleep | |
| import requests | |
| verbose = "-v" in sys.argv | |
| application_id = input("Application ID: ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TOKEN = "" # Your bot's token | |
| BAD_NICKS = (,) # Iterable of nicks to censor | |
| ALERT_CHANNEL = # ID of channel you want to send alerts to | |
| MESSAGE = "%mention Please refrain from setting your nick to anything that breaks server rules continuing to do this may result in punishment." # Alert message (%mention will be replaced with user mention) | |
| DELETE_AFTER = 30 # Time until it deletes alert message after sending it | |
| import discord | |
| intents = discord.Intents.default() |