Skip to content

Instantly share code, notes, and snippets.

View sexnine's full-sized avatar
😎

sexnine sexnine

😎
View GitHub Profile
@sexnine
sexnine / temperature_converter.py
Created May 20, 2022 01:26
GUI temperature converter made in Python using Tk
import tkinter as tk
from typing import Callable, Optional
def is_number_text(text):
if text in ["", "-"]:
return True
try:
float(text)
return True
@sexnine
sexnine / jokes.py
Created October 5, 2021 01:48
Slash commands in cogs - Pycord
from discord.ext import commands
import discord
from . import api
from typing import Optional
from discord.app import Option
slash_categories = {
...
}
@sexnine
sexnine / reaction_gifs.py
Created September 5, 2021 13:10
py-cord dynamically adding commands example
from typing import Optional
import discord
from discord.ext import commands
from nekosbest import Client as NekosBestClient
nekos_best_client = NekosBestClient()
class Reaction:
def __init__(self, name: str, action: str = None, user_menu: bool = False, no_mention: str = None, mention: str = None):