added delay for running commands in rcon channel, updated scraping to be even more generic.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import discord
|
||||
from datetime import datetime
|
||||
from discord.ext.tasks import loop
|
||||
from time import sleep
|
||||
from settings import get_connection_event, token
|
||||
|
||||
intents = discord.Intents.default()
|
||||
@@ -77,6 +78,8 @@ async def discord_task():
|
||||
#silly white space none sense
|
||||
if len(map) > 3:
|
||||
cooldown_msg = f"""sm_nominate_exclude_time {map} 1 0"""
|
||||
#adding slight delay
|
||||
sleep(1)
|
||||
await r.send(cooldown_msg)
|
||||
conn.commit()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user