The plugin serves for creation on hub of votings by the set themes with the set variants of answers. Users can vote once for one of them. The name of votings bot and menu item can be set in localisation file Text_lang.lua.
For voting in current active voting it is necessary by command !vote <answer_index>. To look results of votings it is possible by command !votings. To look plugins information about commands of votings it is possible by command !voting.
To add new voting with the chosen theme it is possible by command !addvoting <theme>. To remove voting with the chosen index it is possible by command !addvotinganswer <index> <text>. To remove a variant of the answer with the chosen index from voting with the chosen index it is possible by command !delvotinganswer <voting_index> <answer_index>.
To stop current voting or to make active voting with the chosen index it is possible by command !isvoting <index>. To restart the chosen voting and to clear its results it is possible by command !resetvoting <index>.
Enable/disable messages in chat about current voting it is possible by command !votingmessage. To allow/forbid to participate to not registered users in votings it is possible by command !votingregsonly. To set the period of announcements of current voting it is possible by command !votingperiod <minutes>. To set number of votings which will remain in base at addition of new voting, it is possible by command !votingcount <count>. At addition of new voting to it the index 1, and the oldest voting if the limit on quantity keeped votings is exceeded is appropriated, deletes. If voting at current active other voting is added to start the new added voting, it is necessary to stop previous, and then to start the wished.
The table of votings is stored in files votingsVotings. The table of the voted users is stored in file votingsUsersList.