freddyaboulton commited on
Commit
f7b80dd
·
1 Parent(s): 0dbe81a

Deploy Discord Bot

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,12 +42,10 @@ intents = discord.Intents.default()
42
  intents.message_content = True
43
  bot = commands.Bot(command_prefix="/", intents=intents)
44
 
45
- print(bot.extensions)
46
 
47
  @bot.event
48
  async def on_ready():
49
  print(f"Logged in as {bot.user} (ID: {bot.user.id})")
50
- print(bot.tree)
51
  synced = await bot.tree.sync()
52
  print(f"Synced commands: {', '.join([s.name for s in synced])}.")
53
  print("------")
@@ -64,7 +62,7 @@ thread_to_user = {}
64
  # await ctx.send(f"Synced commands: {', '.join([s.name for s in synced])}.")
65
 
66
 
67
- @bot.hybrid_command(
68
  name="chat",
69
  description="Enter some text to chat with the bot! Like this: /chat Hello, how are you?",
70
  )
 
42
  intents.message_content = True
43
  bot = commands.Bot(command_prefix="/", intents=intents)
44
 
 
45
 
46
  @bot.event
47
  async def on_ready():
48
  print(f"Logged in as {bot.user} (ID: {bot.user.id})")
 
49
  synced = await bot.tree.sync()
50
  print(f"Synced commands: {', '.join([s.name for s in synced])}.")
51
  print("------")
 
62
  # await ctx.send(f"Synced commands: {', '.join([s.name for s in synced])}.")
63
 
64
 
65
+ @bot.command(
66
  name="chat",
67
  description="Enter some text to chat with the bot! Like this: /chat Hello, how are you?",
68
  )