Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
global
Browse files
app.py
CHANGED
|
@@ -53,10 +53,12 @@ ping alerts for list of keywords
|
|
| 53 |
|
| 54 |
'''
|
| 55 |
# stats stuff---------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
| 56 |
|
| 57 |
@bot.event
|
| 58 |
async def on_message(message):
|
| 59 |
try:
|
|
|
|
| 60 |
if message.author != bot.user:
|
| 61 |
user = bot.get_user(811235357663297546) #811235357663297546
|
| 62 |
number_of_messages = number_of_messages + 1
|
|
@@ -253,7 +255,7 @@ async def on_ready():
|
|
| 253 |
print('Logged on as', bot.user)
|
| 254 |
#bot.log_channel = bot.get_channel(1100458786826747945) # bot-test
|
| 255 |
bot.log_channel = bot.get_channel(1036960509586587689) # admin-logs
|
| 256 |
-
|
| 257 |
|
| 258 |
def run_bot():
|
| 259 |
bot.run(DISCORD_TOKEN)
|
|
|
|
| 53 |
|
| 54 |
'''
|
| 55 |
# stats stuff---------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 56 |
+
number_of_messages = 0
|
| 57 |
|
| 58 |
@bot.event
|
| 59 |
async def on_message(message):
|
| 60 |
try:
|
| 61 |
+
global number_of_messages
|
| 62 |
if message.author != bot.user:
|
| 63 |
user = bot.get_user(811235357663297546) #811235357663297546
|
| 64 |
number_of_messages = number_of_messages + 1
|
|
|
|
| 255 |
print('Logged on as', bot.user)
|
| 256 |
#bot.log_channel = bot.get_channel(1100458786826747945) # bot-test
|
| 257 |
bot.log_channel = bot.get_channel(1036960509586587689) # admin-logs
|
| 258 |
+
|
| 259 |
|
| 260 |
def run_bot():
|
| 261 |
bot.run(DISCORD_TOKEN)
|