Code Monkey home page Code Monkey logo

shut-up-tglaren's Introduction

Shut up, tglaren!

Imgur

Are you tired of messages like this flooding your Telegram group?

Use this bot to automatically delete this kind of message.

How it works?

It just uses a regular regular expression to delete "member joined" messages when his name matches.

You need to set two enviroment vars:

ENV Description
TELEGRAM_BOT_TOKEN Your Telegram bot token
NAME_REGEX RegEx for matching the name (e.g. "tglaren")

shut-up-tglaren's People

Contributors

bigomby avatar stkw0 avatar

Stargazers

David Girón avatar

Watchers

James Cloos avatar  avatar

Forkers

stkw0

shut-up-tglaren's Issues

Compile but doesn't run

thread 'main' panicked at 'called Result::unwrap() on an Err value: NotPresent', libcore/result.rs:945:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::begin_panic_fmt
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::result::unwrap_failed
9: shut_up_tglaren::main
10: std::rt::lang_start::{{closure}}
11: std::panicking::try::do_call
12: __rust_maybe_catch_panic
13: std::rt::lang_start_internal
14: main
15: __libc_start_main
16: _star

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.