Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/phil-r/asciifacesbot

:smiley: Telegram Bot @asciifacesbot that allows you to append ascii faces to your messages ¯\_(ツ)_/¯
https://github.com/phil-r/asciifacesbot

ascii ascii-art bot faces telegram telegram-bot

Last synced: about 1 month ago
JSON representation

:smiley: Telegram Bot @asciifacesbot that allows you to append ascii faces to your messages ¯\_(ツ)_/¯

Awesome Lists containing this project

README

        

# asciifacesbot
Telegram Bot [@asciifacesbot](https://telegram.me/asciifacesbot) that allows you to append ascii faces to your messages ¯\\\_(ツ)\_/¯

## Backend
Bot runs on [Google App Engine](https://cloud.google.com/appengine/)

## Telegram API
Bot replies to every incoming webhook and doesn't send requests to the API directly

## How to run your own `asciifacesbot`
- Clone this project
- Run `pip install -r requirements.txt -t lib/` to install dependencies
- Download and install [App Engine SDK](https://cloud.google.com/appengine/downloads)
- Register your app in [Google Cloud console](https://console.cloud.google.com)
- Register your bot via [BotFather](https://telegram.me/BotFather)
- Rename `sample_app.yaml` to `app.yaml` and replace `YOUR_TELEGRAM_BOT_TOKEN` with your bot token
- Set up webhook by running something like `curl -X POST -H "Content-Type: application/json" -d '{"url":"https://{yourappid}.appspot.com/{YOUR_TELEGRAM_BOT_TOKEN}"}' https://api.telegram.org/bot{YOUR_TELEGRAM_BOT_TOKEN}/setWebhook`
- Run `gcloud app deploy app.yaml --project yourappid` in the project folder
- `¯\_(ツ)_/¯`

## TODO:
- [x] Add basic inline bot
- [ ] Do something with thumbnail
- [ ] Setup your favorite faces through bot commands
- [ ] [Collect feedback](https://core.telegram.org/bots/inline#collecting-feedback)

Thanks to https://github.com/maxogden/cool-ascii-faces for the list of faces ¯\\\_(ツ)\_/¯

## See also
- [Hacker news bot](https://github.com/phil-r/hackernewsbot)