https://github.com/insanusmokrassar/plagubotexample
https://github.com/insanusmokrassar/plagubotexample
dev-inmo-plagubot dev-inmo-tgbotapi ktgbotapi telegram-bot
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/insanusmokrassar/plagubotexample
- Owner: InsanusMokrassar
- License: mit
- Created: 2021-02-17T14:22:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-01T03:46:03.000Z (over 1 year ago)
- Last Synced: 2025-03-28T07:02:53.678Z (about 1 year ago)
- Topics: dev-inmo-plagubot, dev-inmo-tgbotapi, ktgbotapi, telegram-bot
- Language: Kotlin
- Homepage:
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlaguBotExample
This repository contains the sample of Telegram Bot based on [PlaguBot](https://github.com/InsanusMokrassar/PlaguBot).
## What can this bot do?
In case you will use [config.json](./config.json) as base config for your bot, you will get:
* Captcha
* Bans
* Welcome
In one bot.
## How does it work?
In [config.json](./config.json) you may see `plugins` section: it is the list of plugins you will include in your bot.
Besides, there are several other sections:
* `botToken` - the bot token
* `flushUpdates` - if this option set to `true`, after bot restart the accumulated updates will be skipped
* `clearCommands` - will force reset the commands of `bot` on each start
* `database` - settings of the database. You may use any database available with JDBC Technology (like `Postgres`). For
more info see [DatabaseConfig.kt](https://github.com/InsanusMokrassar/PlaguBot/blob/master/bot/src/main/kotlin/dev/inmo/plagubot/config/DatabaseConfig.kt#L19)