Small fix to chat revive
This commit is contained in:
@@ -27,6 +27,8 @@ async def handle_moderation(message):
|
|||||||
return
|
return
|
||||||
if is_user_immune(message.author):
|
if is_user_immune(message.author):
|
||||||
return
|
return
|
||||||
|
if message.guild is None:
|
||||||
|
return
|
||||||
text = message.content or ""
|
text = message.content or ""
|
||||||
uid = str(message.author.id)
|
uid = str(message.author.id)
|
||||||
g = message.guild
|
g = message.guild
|
||||||
|
|||||||
+1
-1
@@ -296,7 +296,7 @@ async def on_ready():
|
|||||||
logger.info(f"T.A.R.S. is online as {bot.user} (ID: {bot.user.id})")
|
logger.info(f"T.A.R.S. is online as {bot.user} (ID: {bot.user.id})")
|
||||||
scheduler.start()
|
scheduler.start()
|
||||||
scheduler.add_job(
|
scheduler.add_job(
|
||||||
lambda: asyncio.create_task(check_chat_revive()),
|
lambda: bot.loop.create_task(check_chat_revive()),
|
||||||
"interval",
|
"interval",
|
||||||
minutes=10,
|
minutes=10,
|
||||||
id="chat_revive_job",
|
id="chat_revive_job",
|
||||||
|
|||||||
Reference in New Issue
Block a user