GithubHelp home page GithubHelp logo

tg_vava_bot's Introduction

tg_vava_bot

Telegram chat bot created with Python 3.8.5. Communication implemented with a webhook. App implemented with Flask. Easy to deploy to Heroku.

App uses Telegram Bot API for communication with Telegram and Google Search API for the searches.

@bot_name *query* - Select and send an image from Google image search results with the given query

/img *query* - Post the first image from Google image search with the given query ("I'm Feeling Lucky")

/puppu *input* - Generate a "puppulause" from the given input (From http://puppulausegeneraattori.fi/)

/inspis - Generate a random inspirational image (From https://inspirobot.me/)

/ask - Ask questions or talk to VavaBot (Using GPT-4 https://openai.com/blog/openai-api/)

/ask - Reset VavaBot conversation history (Using GPT-4 https://openai.com/blog/openai-api/)

/subscribe - Subscribe chat to bargain alerts

/unsubscribe - Unsubscribe chat from bargain alerts

/help - Show this help message

You need to add ENV variables:

  • TOKEN from Telegram Bot API and HOOK for the Telegram hook url.

  • G_KEY and G_CX from Google Search API

  • OPENAI_API_KEY from OpenAI API

tg_vava_bot's People

Contributors

dependabot[bot] avatar klemmari1 avatar

Watchers

 avatar

tg_vava_bot's Issues

issues in running app.py

Traceback (most recent call last): File "./app.py", line 15, in <module> bot = tgbot.TgbotConnection(os.environ["BOTTOKEN"]) File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__ raise KeyError(key) KeyError: 'TOKEN'

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.