A place to collect all the plugins for Userge Bot made by awesome people who are not in Userge dev team.
You can support us by contributing to this project development. If you have any suggestions or improvements, please create an issue. Pull Requests are most welcome !
from userge import userge, Message, filters
LOG = userge.getLogger(__name__) # logger object
CHANNEL = userge.getCLogger(__name__) # channel logger object
# add command handler
@userge.on_cmd("test", about="help text to this command")
async def test_cmd(message: Message):
LOG.info("starting test command...") # log to console
# some other stuff
await message.edit("testing...", del_in=5) # this will be automatically deleted after 5 sec
# some other stuff
await CHANNEL.log("testing completed!") # log to channel
# add filters handler
@userge.on_filters(filters.me & filters.private) # filter my private messages
async def test_filter(message: Message):
LOG.info("starting filter command...")
# some other stuff
await message.reply(f"you typed - {message.text}", del_in=5)
# some other stuff
await CHANNEL.log("filter executed!")
Head over to the Discussion Group and Update Channel
- Copyright (C) 2020 - 2021 by UsergeTeam
- Licensed under the terms of the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007