2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 14:38:04 +00:00

add start command

This commit is contained in:
Nick80835
2020-09-22 17:57:43 -04:00
parent 070b7c192a
commit a00185b4a1

View File

@@ -2,6 +2,7 @@
from time import time_ns
from telethon import Button
from ubot import ldr
@@ -13,6 +14,15 @@ async def delete_message(event):
await message_to_delete.delete()
@ldr.add("start", help="A start command to start the bot so you know what this bot is capable of when you start it, dumbass.")
async def start_cmd(event):
await event.reply(
f"Hi I'm {ldr.settings.get_config('bot_name') or 'μBot'}, use {ldr.prefix()}help to see what commands I have!",
buttons=[Button.url("Creator", "https://t.me/Nick80835"), Button.url("Source", "https://github.com/Nick80835/microbot/tree/bot")],
link_preview=False
)
@ldr.add("help")
async def help_cmd(event):
if event.args: