This guide will walkthrough the ways to create a custom help command by subclassing HelpCommand.
So you want to do stuff when the bot is ready huh?
Well docs say that on_ready triggeres multiple times (more info on ?tag orp
), So we are going to do a work-around.
Note for changing presence of bot, you are good to go with activity
and status
kwarg in ur Bot constuctor such as:
This guide will tell you how to make a very simple NQN (Not Quite Nitro) for your discord.py bot with 3 simple steps.
NQN stands for Not Quite Nitro. It is simply where a bot (which has powers to use external emojis in any server it's in) replaces a message for you where you have emojis that you want to use, but you can't, cause you don't have nitro! If you want to make one very simple NQN for your own discord.py bot, then you have came in the right place!
We can combine NQN with utils.find
/utils.get
to get emojis, then send them either by webhooks or the bot response itself.
""" | |
My license: | |
PLEASE PLEASE PLEASE DO NOT COPY PASTE THIS CODE. | |
Steal all = Give credit or not and star or not = Me Cri :( | |
Steal some = Give some credit or star = Me happy :) | |
Steal some = Give no credit and no star = Me Cri :( | |
At least star this gist if you want to take some of the code for inspration. |
import discord, secrets | |
class TextInput: | |
"""for storing our text input data""" | |
def __init__(self, payload): | |
self.type = payload['type'] | |
self.custom_id = payload['custom_id'] | |
self.style = payload['style'] | |
self.label = payload['label'] | |
self.min_length = payload.get('min_length') |
This is built for the sole purpose of handling multiple operations within the same time in one asyncpg pool to avoid errors, especially InterfaceError
.
This is a handy tool in load balancers with different machines with the same psql database, etc.
This API will give FREE ACCESS to ANYONE if you do not set the AUTHORIZATION
variable in your config.py
(config.AUTHORIZATION
).