mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Merge branch 'testing'
This commit is contained in:
commit
d578a2ed1e
1 changed files with 2 additions and 3 deletions
|
@ -14,8 +14,7 @@ try:
|
||||||
print('\"config.json\" loaded.')
|
print('\"config.json\" loaded.')
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
with open('config.json', 'w') as outfile:
|
with open('config.json', 'w') as outfile:
|
||||||
json.dump({'client_id': 'int', 'owner_id': 'int', 'permissions': 'int', 'shutdown_channel': 'int', 'startup_channel': 'int',
|
json.dump({'client_id': 'int', 'owner_id': 'int', 'permissions': 'int', 'shutdown_channel': 'int', 'startup_channel': 'int', 'token': 'str'}, outfile, indent=4, sort_keys=True)
|
||||||
'token': 'str'}, outfile, indent=4, sort_keys=True)
|
|
||||||
raise FileNotFoundError('Config file not found: \"config.json\" created with abstract values. Restart \"run.py\" with correct values.')
|
raise FileNotFoundError('Config file not found: \"config.json\" created with abstract values. Restart \"run.py\" with correct values.')
|
||||||
|
|
||||||
bot = commands.Bot(command_prefix=commands.when_mentioned_or(','), description='Experimental booru bot')
|
bot = commands.Bot(command_prefix=commands.when_mentioned_or(','), description='Experimental booru bot')
|
||||||
|
@ -29,7 +28,7 @@ async def on_ready():
|
||||||
print('-------')
|
print('-------')
|
||||||
|
|
||||||
# Close connection to Discord - immediate offline
|
# Close connection to Discord - immediate offline
|
||||||
@bot.command(name=',die', aliases=[',d', ',close', ',kill'], brief='Kills the bot', description='BOT OWNER ONLY\nCloses the connections to Discord', hidden=True)
|
@bot.command(name=',die', aliases=[',d', ',close', ',kill'], brief='Kills the bot', description='BOT OWNER ONLY\nCloses the connection to Discord', hidden=True)
|
||||||
@checks.del_ctx()
|
@checks.del_ctx()
|
||||||
@commands.is_owner()
|
@commands.is_owner()
|
||||||
async def die(ctx):
|
async def die(ctx):
|
||||||
|
|
Loading…
Reference in a new issue