feat(cli|ui): add ~~beautiful~~ useless UI when launching bot
This commit is contained in:
parent
2e76379c87
commit
28d1d71c5a
10 changed files with 247 additions and 98 deletions
|
@ -293,7 +293,8 @@ class Logs(commands.Cog):
|
|||
total = sum(self.bot.socket_stats.values())
|
||||
cpm = total / minutes
|
||||
await ctx.send(
|
||||
f'{total} socket events observed ({cpm:.2f}/minute):\n{self.bot.socket_stats}')
|
||||
f'{total} socket events observed ({cpm:.2f}/minute):\n'
|
||||
f'{self.bot.socket_stats}')
|
||||
|
||||
@commands.command('uptime')
|
||||
async def _uptime(self, ctx):
|
||||
|
|
|
@ -60,7 +60,7 @@ class Network(commands.Cog, name="Useless"):
|
|||
ip_info = obj.lookup()
|
||||
|
||||
try:
|
||||
handler = ipinfo.getHandler(self.bot.config.ipinfo)
|
||||
handler = ipinfo.getHandler(self.bot._config.ipinfo)
|
||||
details = handler.getDetails(target)
|
||||
api_result = True
|
||||
except (RequestQuotaExceededError, HTTPError):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue