lunarflu HF staff commited on
Commit
0c808f0
1 Parent(s): 9fb328b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -44,9 +44,7 @@ api = HfApi()
44
  async def on_ready():
45
  print(f'Logged in as {bot.user.name}')
46
  print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
47
- channel_id = 1197143964994773023
48
- channel = bot.get_channel(channel_id)
49
- await channel.send("test")
50
 
51
 
52
  def calculate_level(xp):
@@ -227,9 +225,10 @@ async def on_reaction_add(reaction, user):
227
 
228
 
229
 
230
-
231
-
232
-
 
233
 
234
 
235
 
 
44
  async def on_ready():
45
  print(f'Logged in as {bot.user.name}')
46
  print(f"XP_PER_MESSAGE: {XP_PER_MESSAGE}")
47
+
 
 
48
 
49
 
50
  def calculate_level(xp):
 
225
 
226
 
227
 
228
+ @bot.command(name='send_message')
229
+ async def send_message(ctx):
230
+ channel = ctx.channel
231
+ await channel.send("test")
232
 
233
 
234