From ba748c44f26851a2f09d27194b19eb468cddf56e Mon Sep 17 00:00:00 2001 From: phixxy Date: Tue, 25 Jul 2023 17:22:03 -0700 Subject: [PATCH] Removed commented out code --- sparkytron3000.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sparkytron3000.py b/sparkytron3000.py index 7a375a5..5840011 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -209,12 +209,9 @@ async def look_at(ctx, look=False): return metadata - def edit_channel_config(channel_id, key, value): config_file = "channels/config/" + str(channel_id) + ".json" - #if not os.path.exists(config_file): - # create_channel_config(config_file) with open(config_file, 'r') as f: config_data = json.load(f) config_data[key] = value @@ -662,7 +659,7 @@ async def meme(ctx): except Exception as error: await handle_error(error) try: - #------------------------------------Saving Image Using Requests---------------------------------# + #------------------------------------Saving Image Using Aiohttp---------------------------------# filename = memepics[id-1]['name'] async with bot.http_session.get(image_link) as response: folder = "tmp/"