Skip to content

Instantly share code, notes, and snippets.

View proguy914629bot's full-sized avatar
👨‍💻
Codin' stuff.

proguy914629 proguy914629bot

👨‍💻
Codin' stuff.
View GitHub Profile
@proguy914629bot
proguy914629bot / cache.py
Last active April 24, 2025 14:28
A Simple Cache Implementation in Python.
"""
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.

This guide tells you how to make a simple NQN system for your discord.py bot.

This guide will tell you how to make a very simple NQN (Not Quite Nitro) for your discord.py bot with 3 simple steps.

What is Not Quite Nitro a.k.a NQN?

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!

Please, please understand what this does first before putting this in your code.

Guide:

We can combine NQN with utils.find/utils.get to get emojis, then send them either by webhooks or the bot response itself.

NOTICE:

You should understand the code below. DO NOT COPY AND PASTE.

How to do stuff when the bot is ready?

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:

@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:45
Discord tokens detected
NzU1Mjk1ODgwMTkzNjM4NTAx.X2BOGg.-irLF1ie0Fj_uc9QpupnTnVbzyM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:32
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:32
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:32
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:32
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:31
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM
@proguy914629bot
proguy914629bot / ALERT!.txt
Created January 12, 2021 02:31
Discord tokens detected
NzY4MDAwODY0MjExMTczMzc4.X46Gig.QJhLH_i6BTqHlzfLJaS1LO1ABUM