diff --git a/src/cogs/owner.py b/src/cogs/owner.py index 8129593..90691f2 100644 --- a/src/cogs/owner.py +++ b/src/cogs/owner.py @@ -27,8 +27,6 @@ class Bot: async def die(self, ctx): await u.add_reaction(ctx.message, '\N{CRESCENT MOON}') - await self.bot.get_channel(u.config['info_channel']).send('**Shutting down** \N{CRESCENT MOON} . . .') - chantype = 'guild' if isinstance(ctx.channel, d.TextChannel) else 'private' u.temp['startup'] = (chantype, ctx.channel.id if chantype == 'guild' else ctx.author.id, ctx.message.id) u.dump(u.temp, 'temp/temp.pkl') @@ -45,7 +43,6 @@ class Bot: await u.add_reaction(ctx.message, '\N{SLEEPING SYMBOL}') print('\n^ ^ ^ ^ ^ ^ ^ ^ ^ ^\nR E S T A R T I N G\n^ ^ ^ ^ ^ ^ ^ ^ ^ ^\n') - await self.bot.get_channel(u.config['info_channel']).send('**Restarting** \N{SLEEPING SYMBOL} . . .') chantype = 'guild' if isinstance(ctx.channel, d.TextChannel) else 'private' u.temp['startup'] = (chantype, ctx.channel.id if chantype == 'guild' else ctx.author.id, ctx.message.id) diff --git a/src/run.py b/src/run.py index 7d79677..29f9ff6 100644 --- a/src/run.py +++ b/src/run.py @@ -87,8 +87,6 @@ async def on_ready(): print('\n> > > > > > > > >\nC O N N E C T E D : {}\n> > > > > > > > >\n'.format(bot.user.name)) try: - await bot.get_channel(u.config['info_channel']).send(f'**Started** \N{BLACK SUN WITH RAYS} `{"` or `".join(u.config["prefix"])}`') - if u.temp['startup']: with suppress(err.NotFound): if u.temp['startup'][0] == 'guild': @@ -142,7 +140,6 @@ async def on_error(error, *args, **kwargs): print('\n! ! ! ! !\nE R R O R : {}\n! ! ! ! !\n'.format(sys.exc_info()[1].text), file=sys.stderr) tb.print_exc() await bot.get_user(u.config['owner_id']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error)) - await bot.get_channel(u.config['info_channel']).send('**ERROR** \N{WARNING SIGN}\n```\n{}```'.format(error)) if u.temp['startup']: with suppress(err.NotFound): @@ -188,7 +185,6 @@ async def on_command_error(ctx, error): error), file=sys.stderr) tb.print_exception(type(error), error, error.__traceback__, file=sys.stderr) await bot.get_user(u.config['owner_id']).send('**COMMAND ERROR** \N{WARNING SIGN} `{}` from {} in {}\n```\n{}```'.format(ctx.message.content, ctx.author.mention, ctx.channel.mention if isinstance(ctx.channel, d.channel.TextChannel) else 'DMs', error)) - await bot.get_channel(u.config['info_channel']).send('**COMMAND ERROR** \N{WARNING SIGN} `{}` from {} in {}\n```\n{}```'.format(ctx.message.content, ctx.author.name, ctx.channel.mention if isinstance(ctx.channel, d.channel.TextChannel) else 'DMs', error)) await exc.send_error(ctx, error) await u.add_reaction(ctx.message, '\N{WARNING SIGN}') diff --git a/src/utils/utils.py b/src/utils/utils.py index 7808eb7..6302d11 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -27,7 +27,7 @@ try: except FileNotFoundError: with open('config.json', 'w') as outfile: - jsn.dump({'client_id': 0, 'info_channel': 0, 'owner_id': 0, 'permissions': 126016, + jsn.dump({'client_id': 0, 'owner_id': 0, 'permissions': 126016, 'playing': 'a game', 'prefix': [',', 'm,'], 'selfbot': False, 'token': 'str'}, outfile, indent=4, sort_keys=True) print('FILE NOT FOUND : config.json created with abstract values. Restart run.py with correct values')