From e4537960222824fe11e2da8ebc4c386aeb92c4c1 Mon Sep 17 00:00:00 2001 From: 7trail <72806227+7trail@users.noreply.github.com> Date: Mon, 28 Aug 2023 21:11:51 -0500 Subject: [PATCH] Update main.py --- main.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.py b/main.py index 4cc533f..e08ec23 100644 --- a/main.py +++ b/main.py @@ -8,8 +8,6 @@ import random import re from discord import app_commands from discord.ext import tasks -import keep_alive -from keep_alive import keep_alive load_dotenv() @@ -136,14 +134,12 @@ async def FlushQueue(): if len(queue) > 0: obj = queue.pop(0) - keep_alive.header = obj[1] obj[1] = re.sub('[^A-Za-z0-9 ]+', '', obj[1]) log = client.get_channel(logChannel) await log.send(f"**Now generating the {obj[0]} '{obj[1]}'**") channel = client.get_channel(obj[3]) st = f"Create a DND 5e {obj[0]} named the '{obj[1]}'. {obj[2]} Keep the final text under 300 words. Use markdown text formatting." c = await generate.GetText(st) - keep_alive.body = c if len(c) > 1900: c2 = c[1899:(len(c)-1)] c = c[0:1899] @@ -177,7 +173,5 @@ async def on_ready(): await log.send("Bot now online") FlushQueue.start() -keep_alive() - bot_token = os.environ['BOT_TOKEN'] client.run(bot_token)