Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/audy/telegram-bot
:robot: :phone: it's a me! telegram bot!
https://github.com/audy/telegram-bot
Last synced: about 1 month ago
JSON representation
:robot: :phone: it's a me! telegram bot!
- Host: GitHub
- URL: https://github.com/audy/telegram-bot
- Owner: audy
- License: mit
- Created: 2019-02-12T21:08:21.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-29T23:53:05.000Z (almost 2 years ago)
- Last Synced: 2024-10-09T20:24:52.613Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 83 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Bot
[![test](https://github.com/audy/telegram-bot/workflows/tests/badge.svg)](https://github.com/audy/telegram-bot/actions)
[![deploy](https://github.com/audy/telegram-bot/workflows/deploy/badge.svg)](https://github.com/audy/telegram-bot/actions)I'm a bot! on Telegram!
[Contributors](https://github.com/audy/telegram-bot/graphs/contributors)## Adding New Commands
To add a command, edit `bot.py` and add a function that returns a string:
```python
import random@bot.responds_to("hello")
def hello(context):
""" returns a greeting """
return random.sample(["Hola", "Hallo", "Hello", "Salut"])
```That's it!
## Deployment
This repository will automatically deploy to production if you push/merge to
the `master` branch. To fix/modify the bot, [submit a pull
request](https://github.com/audy/telegram-bot/pull/new/master).## Testing
`pytest -vv`