From a24528a06aadf522e4146f1da5c84c300913ca81 Mon Sep 17 00:00:00 2001 From: Who? <155328415+coddrago@users.noreply.github.com> Date: Wed, 9 Jul 2025 05:52:58 +0000 Subject: [PATCH] test /profile --- heroku/modules/inline_stuff.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heroku/modules/inline_stuff.py b/heroku/modules/inline_stuff.py index 7706703..b975ba9 100644 --- a/heroku/modules/inline_stuff.py +++ b/heroku/modules/inline_stuff.py @@ -136,5 +136,7 @@ class InlineStuff(loader.Module): async def aiogram_watcher(self, message: BotInlineMessage): if message.text != "/profile": return + if message.sender.id != self.client.tg_id + await message.answer("You are not allowed to use this") await message.answer("Your information about userbot:\n
prefix: {prefix}\nRAM: {ram_usage} MB\nCPU: {cpu_usage}\nHosting: {host}
\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())) \ No newline at end of file