Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/UsergeTeam/Userge-Plugins
Plugins for Userge
https://github.com/UsergeTeam/Userge-Plugins
userge
Last synced: 3 months ago
JSON representation
Plugins for Userge
- Host: GitHub
- URL: https://github.com/UsergeTeam/Userge-Plugins
- Owner: UsergeTeam
- License: gpl-3.0
- Created: 2020-05-14T14:30:11.000Z (over 4 years ago)
- Default Branch: dev
- Last Pushed: 2024-04-25T05:40:48.000Z (7 months ago)
- Last Synced: 2024-06-28T18:43:35.528Z (5 months ago)
- Topics: userge
- Language: Python
- Homepage: https://userge.tech
- Size: 1.38 MB
- Stars: 136
- Watchers: 16
- Forks: 332
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Userge-Plugins ๐
[![Build Status](https://travis-ci.com/UsergeTeam/Userge-Plugins.svg?branch=master)](https://travis-ci.com/UsergeTeam/Userge-Plugins) ![Python Version](https://img.shields.io/badge/python-3.8-lightgrey) ![Release](https://img.shields.io/github/v/release/UsergeTeam/Userge) ![Stars](https://img.shields.io/github/stars/UsergeTeam/Userge-Plugins) ![Forks](https://img.shields.io/github/forks/UsergeTeam/Userge-Plugins) ![Issues Open](https://img.shields.io/github/issues/UsergeTeam/Userge-Plugins) ![Issues Closed](https://img.shields.io/github/issues-closed/UsergeTeam/Userge-Plugins) ![PR Open](https://img.shields.io/github/issues-pr/UsergeTeam/Userge-Plugins) ![PR Closed](https://img.shields.io/github/issues-pr-closed/UsergeTeam/Userge-Plugins) ![Contributors](https://img.shields.io/github/contributors/UsergeTeam/Userge-Plugins) ![Repo Size](https://img.shields.io/github/repo-size/UsergeTeam/Userge-Plugins) ![License](https://img.shields.io/github/license/UsergeTeam/Userge-Plugins) ![Commit Activity](https://img.shields.io/github/commit-activity/m/UsergeTeam/Userge-Plugins) [![Main Repo!](https://img.shields.io/badge/Main%20Repo-!-orange)](https://github.com/UsergeTeam/Userge) [![Join Channel!](https://img.shields.io/badge/Join%20Channel-!-red)](https://t.me/theUserge) [![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/UsergeTeam/Userge-Plugins/?ref=repository-badge)
## [Documentation](https://userge.tech) ๐
## [Main Repo](https://github.com/UsergeTeam/Userge) ๐ก
## Contributing ๐ฅ
You can support us by contributing to this project development. If you have any suggestions or improvements, please [create an issue](https://github.com/UsergeTeam/Userge-Plugins/issues/new). Pull Requests are most welcome !
## Example Plugin ๐คจ
```python
from userge import userge, Message, filtersLOG = 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
...
await message.edit("testing...", del_in=5) # this will be automatically deleted after 5 sec
...
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...")
...
await message.reply(f"you typed - {message.text}", del_in=5)
...
await CHANNEL.log("filter executed!")
```### Support & Discussions ๐ฅ
> Head over to the [Discussion Group](https://t.me/slbotsbugs) and [Update Channel](https://t.me/theUserge)
### Copyright & License ๐ฎ
* Copyright (C) 2020 - 2022 by [UsergeTeam](https://github.com/UsergeTeam)
* Licensed under the terms of the [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007](https://github.com/UsergeTeam/Userge-Plugins/blob/master/LICENSE)