https://github.com/quving/telegrambot-wilson
A simple telegrambot that can chat with you.
https://github.com/quving/telegrambot-wilson
Last synced: 9 months ago
JSON representation
A simple telegrambot that can chat with you.
- Host: GitHub
- URL: https://github.com/quving/telegrambot-wilson
- Owner: Quving
- License: mit
- Created: 2017-01-19T14:13:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T09:34:02.000Z (over 3 years ago)
- Last Synced: 2025-03-26T02:43:10.129Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 9.16 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram-Wilson
[](https://drone.quving.com/Quving/telegrambot-wilson)
## Description
Telegram-Wilson is a [telegrambot](https://core.telegram.org/bots/api), with which you can chat in a natural way. This chatbot is powered by [cleverbot](https://www.cleverbot.com/), a well-known chatbot that learns to imitate human conversations by communicating with people.
In this open source repository you can find the source code and instructions how to host this telegrambot on your own.
___
#### Click [here](https://t.me/cleverwilson_bot) to chat with Wilson.
___
## Configuration
In the configuration file 'phrases.json' you can define how your botinstance should respond.
```json
{
"INTRODUCTION": "Hi, I'm Wilson. Usually I'm only avail...",
"GREETING": "Yep?",
"GOODBYE": "Too bad ... see you next time.",
"HELP": "If you write with me and I don't answer, then ..."
}
```
## Installation
Before you can host this instance on your own, you must officially register your bot with Telegrambot. You can find the instructions [here](https://core.telegram.org/bots) (3. How do i create a bot?)
After you had the conversation with Botfather, you received a bot_token. This bot_token is relevant for the setup.
### Docker (recommended)
#### Build and use your own Docker-Image
```bash
docker build -t telegrambot-wilson .
docker run -d -v $(pwd)/phrases.json:/app/phrases.json \
-e WILSON_BOT_TOKEN= \
--name telegrambot-wilson telegrambot-wilson
```
## Usage
Once your bot is running you can interact with it. You can find the bot at Telegram under '@[bot_username]'. Note: bot_username ends with 'bot'. You start the conversation session with the initial command:
```
Hey Wilson
```
The bot-instance will reply when it is launched succesfully. Happy chatting!