Spaces:
Runtime error
Runtime error
Update app.py
Browse files12 unmodified lines1314151617181951 unmodified lines717273747576777812 unmodified linesimport gradio_client as grcfrom gradio_client.utils import QueueErrorfrom discord.ext import commandsevent = Event()51 unmodified linesasync def on_ready():print(f"We have logged in as {bot.user}")@bot.slash_command(name="cryptosearch", description="Find top trending cryptocurrencies for a specific period.")async def cryptosearch(ctx, period: str = commands.Param(choices=["day", "week", "month"])):if ctx.author.id == bot.user.id:return12 unmodified lines13141516171819202151 unmodified lines73747576777879808182838485868788899091929394959612 unmodified linesimport gradio_client as grcfrom gradio_client.utils import QueueErrorfrom discord.ext import commandsfrom discord.ext import commandsfrom discord.ext import SlashCommand, SlashContextfrom discord.ext import create_option, create_choiceevent = Event()51 unmodified linesasync def on_ready():print(f"We have logged in as {bot.user}")@slash.slash(name="cryptotrend",description="Find top trending cryptocurrencies for a specific period.",options=[create_option(name="period",description="Choose the period",option_type=3, # Type 3 corresponds to STRINGrequired=True,choices=[create_choice(name="Day", value="day"),create_choice(name="Week", value="week"),create_choice(name="Month", value="month")])])async def cryptotrend(ctx: SlashContext, period: str):if ctx.author.id == bot.user.id:return
app.py+21-3