mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 21:02:38 +00:00
Added check for shutdown output
This commit is contained in:
parent
3c2f5c5cc0
commit
b4346cb334
1 changed files with 2 additions and 1 deletions
|
@ -35,7 +35,8 @@ async def on_ready():
|
||||||
@checks.del_ctx()
|
@checks.del_ctx()
|
||||||
async def die(ctx):
|
async def die(ctx):
|
||||||
try:
|
try:
|
||||||
await bot.get_channel(config['shutdown_channel']).send('Am g0 by3e333333eee. **H4v3 n1GhT.** 💤')
|
if isinstance(bot.get_channel(config['startup_channel']), discord.TextChannel):
|
||||||
|
await bot.get_channel(config['shutdown_channel']).send('Am g0 by3e333333eee. **H4v3 n1GhT.** 💤')
|
||||||
await bot.close()
|
await bot.close()
|
||||||
print('-------')
|
print('-------')
|
||||||
print('Closed.')
|
print('Closed.')
|
||||||
|
|
Loading…
Reference in a new issue