Skip to content
This repository was archived by the owner on Jul 31, 2018. It is now read-only.

Commit a7d993f

Browse files
committed
Added more info to the info command
1 parent 2fe9e4c commit a7d993f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

cogs/info.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,9 @@ async def userinfo(self, ctx, *, member : discord.Member=None):
193193
@commands.command(aliases=['bot', 'info'])
194194
async def about(self, ctx):
195195
'''See information about the selfbot and latest changes.'''
196-
cmd = r'git show -s HEAD~3..HEAD --format="[{}](https://github.com/verixx/selfbot/commit/%H) %s (%cr)"'
197-
if os.name == 'posix':
198-
cmd = cmd.format(r'\`%h\`')
199-
else:
200-
cmd = cmd.format(r'`%h`')
201196

202-
revision = '\n'.join(os.popen(cmd).read().strip() .splitlines()[:3])
203197
embed = discord.Embed()
204-
embed.url = 'https://discord.gg/pmQSbAd'
198+
embed.url = 'https://selfbot-py.tk'
205199
embed.colour = await ctx.get_dominant_color(ctx.author.avatar_url)
206200

207201
embed.set_author(name='selfbot.py', icon_url=ctx.author.avatar_url)
@@ -230,8 +224,12 @@ async def about(self, ctx):
230224
if days:
231225
fmt = '{d}d ' + fmt
232226
uptime = fmt.format(d=days, h=hours, m=minutes, s=seconds)
233-
if revision:
234-
embed.add_field(name='Latest Changes', value=revision)
227+
228+
github = '[Click Here](https://github.com/verixx/selfbot.py/)'
229+
server = '[Click Here](https://discord.gg/pmQSbAd)'
230+
website = '[selfbot-py.tk](http://selfbot-py.tk/)'
231+
232+
235233
embed.add_field(name='Author', value='verixx#7220')
236234
embed.add_field(name='Uptime', value=uptime)
237235
embed.add_field(name='Guilds', value=len(self.bot.guilds))
@@ -240,6 +238,9 @@ async def about(self, ctx):
240238
memory_usage = self.bot.process.memory_full_info().uss / 1024**2
241239
cpu_usage = self.bot.process.cpu_percent() / psutil.cpu_count()
242240
embed.add_field(name='Process', value=f'{memory_usage:.2f} MiB\n{cpu_usage:.2f}% CPU')
241+
embed.add_field(name='Github', value=github)
242+
embed.add_field(name='Discord', value=server)
243+
embed.add_field(name='Website', value=website)
243244
embed.set_footer(text=f'Powered by discord.py {discord.__version__}')
244245
await ctx.send(embed=embed)
245246

0 commit comments

Comments
 (0)