lunarflu HF Staff commited on
Commit
4534e98
·
1 Parent(s): 0c355aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -42,12 +42,14 @@ bot = commands.Bot(command_prefix="/", intents=intents)
42
  @bot.event
43
  async def on_ready():
44
  print(f"Logged in as {bot.user} (ID: {bot.user.id})")
 
 
45
  event.set()
46
  print("------")
47
 
48
 
49
 
50
- @bot.command(
51
  name="codellama",
52
  description="Enter a prompt to generate code!",
53
  )
 
42
  @bot.event
43
  async def on_ready():
44
  print(f"Logged in as {bot.user} (ID: {bot.user.id})")
45
+ synced = await bot.tree.sync()
46
+ print(f"Synced commands: {', '.join([s.name for s in synced])}.")
47
  event.set()
48
  print("------")
49
 
50
 
51
 
52
+ @bot.hybrid_command(
53
  name="codellama",
54
  description="Enter a prompt to generate code!",
55
  )