Code Monkey home page Code Monkey logo

enidbot's Introduction

enidbot

A GhostWorld/Enid Telegram bot

Features

  • spits out Enid-tastic images and captions (for now just one command available: /justkillme)
  • can be used as an inline bot via inline queries: just type @YourBotName into a conversation with anyone, and wait for the magic to happen!

Local Setup

Requirements

To run it locally, you need Python and pip installed. You'll also need the python-telegram-bot library, which you can install by doing pip install python-telegram-bot.

Create your telegram bot

Creating a bot is pretty easy using the Telegram Documentation. Once you've done so, and you've created your token, you need to enable the inline mode for your bot (read more about it here). If you don't do so, the inline queries won't work!

Config

Create a config.py file and add your Telegram API token to it:

TELEGRAM_SECRET_KEY = '269725652:AAFUfzsbHAnl_SbRnJa3aOTrctC8A3oAwME'

Your config will be imported directly in the main file, and it's also added to your .gitignore file by default (so you don't accidentally check your secret key into git).
That's it, you're ready to go!

Deployment

Deploying with heroku is pretty straightforward. You can find the configuration for heroku on the heroku branch (some small changes in config need to be made in your main.py file). If you change your app's main file's name, make sure you update your Procfile accordingly. Before (or after) you deploy, you also need to set up your Config Vars accordingly โ€” see the heroku documentation on that.

Demo

If you have Telegram, you can ping @EnidBot or bring the bot into a conversation by typing @EnidBot at the start of a message (the space is important!). Let yourself be amazed!

enidbot's People

Contributors

alicetragedy avatar dependabot[bot] avatar

Watchers

 avatar  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.