Removed commented out code

This commit is contained in:
phixxy 2023-07-25 17:22:03 -07:00
parent 32f80c2dd5
commit ba748c44f2

View file

@ -210,11 +210,8 @@ async def look_at(ctx, look=False):
return metadata return metadata
def edit_channel_config(channel_id, key, value): def edit_channel_config(channel_id, key, value):
config_file = "channels/config/" + str(channel_id) + ".json" 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: with open(config_file, 'r') as f:
config_data = json.load(f) config_data = json.load(f)
config_data[key] = value config_data[key] = value
@ -662,7 +659,7 @@ async def meme(ctx):
except Exception as error: except Exception as error:
await handle_error(error) await handle_error(error)
try: try:
#------------------------------------Saving Image Using Requests---------------------------------# #------------------------------------Saving Image Using Aiohttp---------------------------------#
filename = memepics[id-1]['name'] filename = memepics[id-1]['name']
async with bot.http_session.get(image_link) as response: async with bot.http_session.get(image_link) as response:
folder = "tmp/" folder = "tmp/"