2 changed files with 23 additions and 12 deletions
@ -1,6 +1,12 @@ |
|||
from discord.ext import tasks |
|||
import traceback |
|||
|
|||
class Extension: |
|||
def __init__(self, core): |
|||
@tasks.loop(seconds=60.0) |
|||
async def stats_loader(core): |
|||
try: |
|||
print("Load stats from backend") |
|||
core.stats = await core.GetStats() |
|||
except: |
|||
traceback.print_exc() |
Loading…
Reference in new issue