Removed commented out code
This commit is contained in:
parent
32f80c2dd5
commit
ba748c44f2
1 changed files with 1 additions and 4 deletions
|
|
@ -209,12 +209,9 @@ 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/"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue