This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PIL import Image | |
import ST7735 | |
disp = ST7735.ST7735( | |
port=0, | |
cs=ST7735.BG_SPI_CS_FRONT, | |
dc=9, | |
rotation=-90 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ODE0NDk4MjkxNzgxMDc0OTU0.YDeupQ.HzuVq-JfbxQOKFfalfq15Sid3ic | |
ODY2ODU5NDY0NjM5OTA1ODEy.YPYryQ.cjpBeWsAi15SsjzYqClF1kAicQI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ODE0NDk4MjkxNzgxMDc0OTU0.YDeupQ.4XmL7dne0qPpXBhrm5Dzr2Kon8k |