Documentation
This commit is contained in:
parent
9874ad568d
commit
0b06098e6b
5 changed files with 56 additions and 26 deletions
34
README.md
34
README.md
|
@ -1,7 +1,9 @@
|
||||||
# Butter Robot
|
# Butter Robot
|
||||||
|
|
||||||

|
| Stable | Master |
|
||||||

|
| --- | --- |
|
||||||
|
|  |  |
|
||||||
|
|  |  |
|
||||||
|
|
||||||
Python framework to create bots for several platforms.
|
Python framework to create bots for several platforms.
|
||||||
|
|
||||||
|
@ -9,25 +11,9 @@ Python framework to create bots for several platforms.
|
||||||
|
|
||||||
> What is my purpose?
|
> What is my purpose?
|
||||||
|
|
||||||
## Supported platforms
|
## Documentation
|
||||||
|
|
||||||
| Name | Receive messages | Send messages |
|
[Go to documentation](./docs)
|
||||||
| --------------- | ---------------- | ------------- |
|
|
||||||
| Slack (app) | Yes | Yes |
|
|
||||||
| Telegram | Yes | Yes |
|
|
||||||
|
|
||||||
## Provided plugins
|
|
||||||
|
|
||||||
|
|
||||||
### Development
|
|
||||||
|
|
||||||
- `!ping`: Say `!ping` to get response with time elapsed.
|
|
||||||
|
|
||||||
### Fun and entertainment
|
|
||||||
|
|
||||||
|
|
||||||
- Lo quito: What happens when you say _"lo quito"_...? (Spanish pun)
|
|
||||||
- Dice: Put `!dice` and wathever roll you want to perform.
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -44,12 +30,11 @@ $ python -m butterrobot
|
||||||
|
|
||||||
### Containers
|
### Containers
|
||||||
|
|
||||||
The `fmartingr/butterrobot/butterrobot` container image is published on Github packages to
|
The `fmartingr/butterrobot/butterrobot` container image is published on Github packages to use with your favourite tool:
|
||||||
use with your favourite tool:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
docker pull docker.pkg.github.com/fmartingr/butterrobot/butterrobot:latest
|
docker pull docker.pkg.github.com/fmartingr/butterrobot/butterrobot:latest
|
||||||
podman run -d --name fmartingr/butterrobot/butterrobot -p 8080:8080
|
podman run -d --name fmartingr/butterrobot/butterrobot -p 8080:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@ -62,8 +47,7 @@ cd butterrobot
|
||||||
poetry install
|
poetry install
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a `.env-local` file with the required environment variables,
|
Create a `.env-local` file with the required environment variables, you have [an example file](.env-example).
|
||||||
you have [an example file](.env-example).
|
|
||||||
|
|
||||||
```
|
```
|
||||||
SLACK_TOKEN=xxx
|
SLACK_TOKEN=xxx
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
# Butterrobot Documentation
|
# Butterrobot Documentation
|
||||||
|
|
||||||
## Index
|
## Index
|
||||||
- [Creating a Plugin](./creating-a-plugin.md)
|
- [Contributing](./contributing.md)
|
||||||
|
- [Platforms](./platforms.md)
|
||||||
|
- Plugins
|
||||||
|
- [Creating a Plugin](./creating-a-plugin.md)
|
||||||
|
- [Provided plugins](./plugins.md)
|
||||||
|
|
23
docs/contributing.md
Normal file
23
docs/contributing.md
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
To run the project locally you will need [poetry](https://python-poetry.org/).
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone git@github.com:fmartingr/butterrobot.git
|
||||||
|
cd butterrobot
|
||||||
|
poetry install
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a `.env-local` file with the required environment variables, you have [an example file](.env-example).
|
||||||
|
|
||||||
|
```
|
||||||
|
SLACK_TOKEN=xxx
|
||||||
|
TELEGRAM_TOKEN=xxx
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
And then you can run it directly with poetry
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -it --rm --env-file .env-local -p 5000:5000 -v $PWD/butterrobot:/etc/app/butterrobot local/butterrobot python -m butterrobot
|
||||||
|
```
|
8
docs/platforms.md
Normal file
8
docs/platforms.md
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
## Supported platforms
|
||||||
|
|
||||||
|
TODO: Create better actions matrix
|
||||||
|
|
||||||
|
| Name | Receive messages | Send messages |
|
||||||
|
| --------------- | ---------------- | ------------- |
|
||||||
|
| Slack (app) | Yes | Yes |
|
||||||
|
| Telegram | Yes | Yes |
|
11
docs/plugins.md
Normal file
11
docs/plugins.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
## Provided plugins
|
||||||
|
|
||||||
|
### Development
|
||||||
|
|
||||||
|
- `!ping`: Say `!ping` to get response with time elapsed.
|
||||||
|
|
||||||
|
### Fun and entertainment
|
||||||
|
|
||||||
|
|
||||||
|
- Lo quito: What happens when you say _"lo quito"_...? (Spanish pun)
|
||||||
|
- Dice: Put `!dice` and wathever roll you want to perform.
|
Loading…
Add table
Add a link
Reference in a new issue