Skip to content

alicetragedy/enidbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

A GhostWorld/Enid Telegram bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages