This userbot working on properly Railway.app !
Deploy To Heroku | Gitpod Online |
---|---|
Fill in the required fields in "sample_config.py"
Install the required libraries with requirements.txt.
( pip3 install -r requirements.txt
)
And then start the bot. ( python3 -m userbot
)
If you did it correctly, the bot will run successfully.
from datetime import datetime
from userbot import bot
from userbot.util import admin_cmd
@bot.on(admin_cmd(pattern="ping"))
async def ping(event):
start = datetime.now()
await event.edit("Pong!")
end = datetime.now()
ms = (end - start).microseconds / 1000
await event.edit("Pong!\n`{}`".format(ms))
If you run into any problems, feel free to let me know. You can contact me using this link.