-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d28feb
commit 3aa89d5
Showing
17 changed files
with
462 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,5 @@ zbot-telegram | |
*.db | ||
/venv | ||
zbot_dev.conf | ||
plex.py | ||
plex.py | ||
vendor/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Zbot Configuration | ||
|
||
```yaml | ||
zbot: | ||
token: <TELEGRAM_TOKEN> | ||
ignore_duration: 300 | ||
ignore: true | ||
level: false | ||
db: | ||
engine: sqlite | ||
file: path_to_sqlite_file.db | ||
webhook: | ||
disable: true | ||
port: 13371 | ||
auth: | ||
- channel: channel1 | ||
id: 1234 | ||
token: <YOUR_SECURE_TOKEN> | ||
- channel: channel2 | ||
token: <YOUR_SECURE_TOKEN> | ||
commands: | ||
learn: | ||
disabled: | ||
- zbot_dev | ||
disabled: | ||
- ignore | ||
- level | ||
- forget | ||
modules: | ||
path: ./modules/ | ||
list: | ||
- key: crypto | ||
file: cypto | ||
description: get some crypto data | ||
- key: test | ||
file: test | ||
description: test module | ||
- key: temp | ||
file: temp.sh | ||
description: get weather info | ||
- key: plex | ||
file: plex2.py | ||
description: get plext information | ||
``` | ||
|
||
## zbot | ||
|
||
## db | ||
```yaml | ||
db: | ||
engine: sqlite | ||
file: path_to_sqlite_file.db | ||
``` | ||
## webhook | ||
```yaml | ||
webhook: | ||
disable: bool // Enable or disable bot webhook (default: false) | ||
port: int // Webhook port (default: 11337) | ||
auth: | ||
- channel: string // Channel name (bot will overwrite it using chat_id information) | ||
id: int64 // Telegram Chat_ID (leave it empty and the bot will try to get it using channel name) | ||
token: string // Token to autenticate request, this should be unique per channel | ||
``` | ||
## commands | ||
|
||
## modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Learn Module | ||
|
||
## Configuiration | ||
This set of modules are enabled by default but they can be disabled in the bot [configuration file](./configuration.md) | ||
|
||
### Learn a *term* | ||
If the term is already in the db an autoincrementa number will be added as a suffix. (term1, term2,...) | ||
``` | ||
!learn [term] [meaning] | ||
``` | ||
|
||
### Get the *meaning* of a *term* | ||
``` | ||
?[term] | ||
``` | ||
|
||
### Get information a *term* | ||
``` | ||
!who [term] | ||
``` | ||
|
||
### Append *meaning* to a *term* | ||
``` | ||
!append [term] [meaning] | ||
``` | ||
|
||
### Get a random *term* | ||
``` | ||
!rand | ||
``` | ||
|
||
### Get last term learned | ||
``` | ||
!last | ||
``` | ||
|
||
### Search similar terms | ||
``` | ||
!search *term* | ||
``` | ||
|
||
### Find terms searching a *text* inside a meaning definition | ||
``` | ||
!find *text* | ||
``` | ||
|
||
### Top (get top [number] terms) | ||
``` | ||
!top [number] | ||
``` | ||
|
||
|
||
### Get total number of terms in db | ||
``` | ||
!stats | ||
``` | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.