|
|
|
|
|
|
|
|
cog.settings.pop("limited_to_guild") |
|
|
cog.settings.pop("limited_to_guild") |
|
|
except KeyError: |
|
|
except KeyError: |
|
|
pass # limited_to_guild is a arg that can be passed to limit a cog to one server. |
|
|
pass # limited_to_guild is a arg that can be passed to limit a cog to one server. |
|
|
print("{}.json".format(name)) |
|
|
|
|
|
if "{}.json".format(name) not in os.listdir("roxbot/settings/servers/{}".format(server_id)): |
|
|
if "{}.json".format(name) not in os.listdir("roxbot/settings/servers/{}".format(server_id)): |
|
|
_make_cog_json_file(server_id, name, cog.settings) |
|
|
_make_cog_json_file(server_id, name, cog.settings) |
|
|
return True |
|
|
return True |