mirror of
https://github.com/Nick80835/microbot
synced 2025-08-31 14:38:04 +00:00
add start command
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user