GithubHelp home page GithubHelp logo

triggerbot's Introduction

TriggerBot

Python 2.7/3.5 Bot for Telegram.

Setup:

Run sudo pip install -r requirements.txt on your terminal.
Then just run one of the following:

TriggerBot.py:

-This version saves triggers for each group separately.

TriggerBot_old.py:

-This version saves triggers globally.

TriggerBotTornado.py:

-Same as TriggerBot.py, but runs on top of a tornado webserver.

TriggerBotMarkov.py:

-This version does not store triggers, it stores messages and tries to generate sentences.

TriggerBotSqlite.py:

-Same as TriggerBot.py, but uses a sqlite database to store triggers.

triggerbot's People

Contributors

owowobread avatar rockneurotiko avatar sanguchi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

triggerbot's Issues

Forwarded messages are stored.

This could be a feature, but looks more like an oversight. Its very annoying and its probably easy to fix, I bet telegram has a check for when a message is forwarded or not.

Error while running TriggerBotMarkov

Hello, i followed the istruction but i can't get it to work, here's the error:

sudo python TriggerBotMarkov.py File "TriggerBotMarkov.py", line 96 def get_user_from_message(message: telebot.types.Message) -> TGUserModel: ^ SyntaxError: invalid syntax

account-telegram-related

Hi,

regarding @TriggerResponseBot
This is more like a personal related situation. What if I lost access to my telegram account (where I build a quite large database of stored saying from me that trigger used often)? There were no options to restore, so eventually had to create a new telegram account including new mobile phone number. Now, is it possible, in any way... to move the original trigger database for my former account to the new one? I do have an copy of exported telegram data- created from within telegram desktop app for windows.

Hope you have an idea, really love this bot (more than anything else bot related <3)

Import Error

git:(master) โœ— sudo python3.5 TriggerBot.py
Traceback (most recent call last):
  File "TriggerBot.py", line 5, in <module>
    from telebot.apihelper import ApiException
  File "/usr/local/lib/python3.5/site-packages/telebot/apihelper.py", line 10, in <module>
    from telebot import types
  File "/usr/local/lib/python3.5/site-packages/telebot/types.py", line 10, in <module>
    from telebot import util
  File "/usr/local/lib/python3.5/site-packages/telebot/util.py", line 16, in <module>
    from telebot import logger
ImportError: cannot import name 'logger'

Hi thanks for making this, however, im getting this error when trying to run the bot.

any ideas ?

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.