joytou commited on
Commit
0a11892
·
1 Parent(s): cef27c1
Files changed (1) hide show
  1. discord_bot.py +2 -0
discord_bot.py CHANGED
@@ -157,6 +157,7 @@ class Test:
157
  print(inter)
158
  print(x)
159
  print(y)
 
160
  Test(bot)
161
 
162
 
@@ -168,6 +169,7 @@ async def ping(ctx):
168
  @bot.event
169
  async def on_ready():
170
  await tree.sync()
 
171
  print('We have logged in as {0.user}'.format(bot))
172
 
173
 
 
157
  print(inter)
158
  print(x)
159
  print(y)
160
+ inter.response.send_message("this is a test message.")
161
  Test(bot)
162
 
163
 
 
169
  @bot.event
170
  async def on_ready():
171
  await tree.sync()
172
+ await bot.tree.sync()
173
  print('We have logged in as {0.user}'.format(bot))
174
 
175