mirror of https://github.com/coddrago/Heroku
а если хватит на додеп
parent
fdd086499b
commit
34f8ed45c7
|
@ -138,12 +138,12 @@ class InlineStuff(loader.Module):
|
|||
if message.from_user.id != self.client.tg_id:
|
||||
await message.answer("You are not allowed to use this")
|
||||
else:
|
||||
await message.answer("Your information about userbot:\n<blockquote>prefix: {prefix}\nRAM: {ram_usage} MB\nCPU: {cpu_usage}\nHosting: {host}</blockquote>\n\nThis Beta!".format(prefix=self.get_prefix(),ram_usage=utils.get_ram_usage(),cpu_usage=utils.get_cpu_usage(),host=utils.get_named_platform()), reply_markup = self.inline.generate_markup(markup_obj=[[{"text": "Restart", "callback": self.restart}]]))
|
||||
await message.answer("Your information about userbot:\n<blockquote>prefix: {prefix}\nRAM: {ram_usage} MB\nCPU: {cpu_usage}\nHosting: {host}</blockquote>\n\nThis Beta!".format(prefix=self.get_prefix(),ram_usage=utils.get_ram_usage(),cpu_usage=utils.get_cpu_usage(),host=utils.get_named_platform()), reply_markup = self.inline.generate_markup(markup_obj=[[{"text": "Restart", "callback": self.restart},{"text": "Reset prefix", "callback": self.reset_prefix}]]))
|
||||
|
||||
async def restart(self, call: InlineCall, message):
|
||||
await call.edit("just test restarta")
|
||||
self.invoke("restart", "-f",message=message, peer=self.inline.bot.id)
|
||||
|
||||
async def reser_prefix(self, call: InlineCall)
|
||||
async def reset_prefix(self, call: InlineCall):
|
||||
await call.edit("Prefix reset!")
|
||||
self.db.set("heroku.main", "command_prefix", ".")
|
Loading…
Reference in New Issue