GithubHelp home page GithubHelp logo

aethermagee / aethermanager Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 2.0 4.82 MB

A chat manager. That's it.

License: GNU General Public License v3.0

Python 99.85% Shell 0.15%
bot shitcode telegram telethon

aethermanager's Introduction

Hello there.

Currently Learning: *nothing*

Current Project: *none*

Past Projects:

  • AetherManager - A Telegram chat manager bot, designed to provide chat cleanup and sequrity, while being quiet and fast
  • MCSOTIS - One of my first "projects", intended to help you install and manage Minecraft servers on your phone via Termux easily

Some code because why not

from life.me.mindset import favouritethings

favouritethings.add(name="programming", priority=727)  # WYSI
from aethermanager import bot, events, logger
from database.servicelayer.service import addUserEntry

@bot.on(events.NewMessage(pattern="(?i).*hello*", func=lambda x: x.is_private))
async def hello(msg):
  await msg.reply("Hi!")
  addUserEntry(msg.sender.id)

aethermanager's People

Contributors

aethermagee avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

aethermanager's Issues

Pattern matching error

Не желательно использовать replace при обрезке паттерна. Можно использовать встроенную функцию группировки из библиотеки.

pattern="сколько будет(?: |$)(.*)"
event.pattern_match.group(0)

также

event.text.split("сколько будет ")[1]

Regex string resolution

Не нужно указывать r-string в паттернах Telethon, это делается автоматически на стороне библиотеки.

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.