Skip to content

Instantly share code, notes, and snippets.

View Wolfhound905's full-sized avatar
💭
Prob not doing anything.

Wolfhound905

💭
Prob not doing anything.
  • US
  • 05:24 (UTC -04:00)
View GitHub Profile
@Wolfhound905
Wolfhound905 / bot.py
Created March 25, 2022 04:36
Example usage of command localization
import dis_snek as dis
bot = dis.Snake(debug_scope=12345, sync_interactions=True, delete_unused_application_cmds=True)
description_locales = {
"en-GB": "an english description",
"da": "en dansk beskrivelse",
"de": "eine deutsche Beschreibung",
@Wolfhound905
Wolfhound905 / bot.py
Created December 17, 2021 16:39
Sample of making and editing events
from datetime import datetime
from typing import Union
from dis_snek.client import Snake
from dis_snek.const import MISSING
from dis_snek.errors import NotFound
from dis_snek.models import (
Embed,
InteractionContext,
OptionTypes,
@Wolfhound905
Wolfhound905 / create_event.py
Created December 17, 2021 04:32
What the command is
@slash_command("create_event", "Create a scheduled event", scopes=[902005056872775760])
@slash_option("name", "The name of the event", required=True, opt_type=OptionTypes.STRING)
@slash_option("start_time", "YEAR/MONTH/DAY The start time of the event", required=True, opt_type=OptionTypes.STRING)
@slash_option(
"event_type",
"The type of the event",
required=True,
opt_type=OptionTypes.INTEGER,
choices=[
SlashCommandChoice("Stage", ScheduledEventEntityType.STAGE_INSTANCE),
from PIL import Image
import ST7735
disp = ST7735.ST7735(
port=0,
cs=ST7735.BG_SPI_CS_FRONT,
dc=9,
rotation=-90
)
@Wolfhound905
Wolfhound905 / tokens
Created July 21, 2021 18:49
discord tokens
ODE0NDk4MjkxNzgxMDc0OTU0.YDeupQ.HzuVq-JfbxQOKFfalfq15Sid3ic
ODY2ODU5NDY0NjM5OTA1ODEy.YPYryQ.cjpBeWsAi15SsjzYqClF1kAicQI
@Wolfhound905
Wolfhound905 / output.txt
Created July 18, 2021 20:58
Discord tokens detected
ODE0NDk4MjkxNzgxMDc0OTU0.YDeupQ.4XmL7dne0qPpXBhrm5Dzr2Kon8k