Skip to content

Instantly share code, notes, and snippets.

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

proguy914629 proguy914629bot

👨‍💻
Codin' stuff.
View GitHub Profile

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.

@proguy914629bot
proguy914629bot / cache.py
Last active July 18, 2025 05:41
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.
testing
@proguy914629bot
proguy914629bot / timezones.md
Created September 1, 2021 11:36
The list of time zones.

List of Timezones:

  • Africa/Abidjan
  • Africa/Accra
  • Africa/Addis_Ababa
  • Africa/Algiers
  • Africa/Asmara
  • Africa/Asmera
  • Africa/Bamako
  • Africa/Bangui
  • Africa/Banjul
@proguy914629bot
proguy914629bot / index.html
Last active November 10, 2021 08:46
404 Page
<div class="hamburger-menu">
<button class="burger" data-state="closed">
<span></span>
<span></span>
<span></span>
</button>
</div>
<nav data-state="closed">
<ul>
<li>
@proguy914629bot
proguy914629bot / black_selection.py
Last active December 18, 2021 18:39
Black for specific line from a specific file.
# How to invoke this file would be to run something like this in your terminal:
# python3 black_selection.py /path/to/black/executable /path/to/file LineStart LineEnd
#
# Make sure to install black with the current running python version.
# To enable debug/verbose, check for BLACK-SELECTION-DEBUG environment and make sure it is set to True.
#
# To get the executable path, run the following command in your terminal:
# - Windows: where black
# - Linux/macOS: which black
@proguy914629bot
proguy914629bot / modal_implementation_example.py
Last active February 26, 2022 16:55 — forked from JeyyGit/modal_implementation_example.py
Rough implementation of modal in discord.py 2
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')
@proguy914629bot
proguy914629bot / main.py
Last active June 1, 2022 09:48
Google Colab SSH Access
import os
import getpass
from google.colab import drive
drive.mount('/content/gdrive/')
os.system("wget -q -c -nc https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip")
os.system("unzip -qq -n ngrok-stable-linux-amd64.zip")
print("Get your authtoken from https://dashboard.ngrok.com/auth")