Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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 |
-
|
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 |
|