AutoPostPollsRatingPlugin

Download Build Status

This plugin was created for AutoPostTelegramBot

Why?

The main idea of this plugin is to use default polls in Telegram as a tool for rating the posts. Any answer in poll have its own rating value and will affect to result rating of post.

Config

Add as dependencies this plugin to your project:

Build system

Gradle

Modern
implementation "com.github.insanusmokrassar:AutoPostPollsRatingPlugin:$polls_rating_plugin_version"
Old
compile "com.github.insanusmokrassar:AutoPostPollsRatingPlugin:$polls_rating_plugin_version"

Maven

<dependency>
    <groupId>com.github.insanusmokrassar</groupId>
    <artifactId>AutoPostPollsRatingPlugin</artifactId>
    <version>${polls_rating_plugin_version}</version>
</dependency>

Bot config

In plugins section add:

[
    "com.github.insanusmokrassar.AutoPostPollsRatingPlugin.PollRatingPlugin",
    {
        "ratingVariants": {
            "Left for near": 1,
            "Left for last": -1,
            "Drop": -3
        },
        "autoAttach": false,
        "text": "How do you like this plugin?:)",
        "variantsRatings": false
    }
]

Options: