Giter Site home page Giter Site logo

nel199 / userge-plugins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from usergeteam/userge-plugins

0.0 0.0 0.0 1.39 MB

UnOfficial Plugins for Userge

Home Page: https://theuserge.github.io

License: GNU General Public License v3.0

Python 100.00%

userge-plugins's Introduction

Userge-Plugins ๐Ÿ’Ž

Build Status Python Version Release Stars Forks Issues Open Issues Closed PR Open PR Closed Contributors Repo Size License Commit Activity Main Repo! Join Channel! DeepSource

Documentation ๐Ÿ“˜

Main Repo ๐Ÿ’ก

Contributing ๐Ÿ‘ฅ

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 !

Example Plugin ๐Ÿคจ

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
   ...
   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 and Update Channel

Copyright & License ๐Ÿ‘ฎ

userge-plugins's People

Contributors

rking32 avatar krishna-singhal avatar phyco-ninja avatar harsh-br0 avatar spechide avatar cyberboysumanjay avatar subinps avatar shivamvijaywargi avatar jigarvarma2005 avatar zekxtreme avatar nobarxtx avatar asmsafone avatar justthekai avatar yshalsager avatar tomyprs avatar theuserge avatar devanagaraj avatar lostb053 avatar jaxellis avatar fayasnoushad avatar sainak avatar alberteinsteintg avatar biansepang avatar pahul124 avatar pseudokawaii avatar rohithollabr avatar jajan-bocah avatar j1shnu avatar code-rgb avatar vaishnavofficial avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.