-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtemplate.py
48 lines (48 loc) · 1.63 KB
/
template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# import interactions
#
# # f1 cmd stuff
# from datetime import datetime, timezone, timedelta
# from ics import Calendar
# import dateutil.parser
#
#
# def get_f1(session_type, *args):
# return embed
#
# class FormulaOne(interactions.Extension):
# def __init__(self, bot):
# self.bot = bot
#
# @interactions.extension_command(name="f1",
# description="Shows upcoming F1 event dates/times",
# options=[
# interactions.Option(
# name="type",
# description="Practice, Qualifying, Race/GP, Sprint",
# type=interactions.OptionType.STRING,
# required=False,
# choices=[
# interactions.Choice(
# name="Grand Prix",
# value="gp"
# ),
# interactions.Choice(
# name="Qualifying",
# value="q"
# )
# ]
# ),
# interactions.Option(
# name="max",
# description="Sessions shown, up to a maximum of 10",
# type=interactions.OptionType.INTEGER,
# required=False
# )
# ]
# )
# async def f1(self, ctx, type:str="all", max:int=1):
# embed = get_f1(type, max)
# await ctx.send(embed=embed)
#
# def setup(bot):
# FormulaOne(bot)