Announcements and publications

Plugin: Obiavleniya.Announcements

The system of announcements serves for conclusion of messages from the list of announcements in chat with the setted for each announcement periodicity. Announcements are stored in file Announcements.lua.

The list of announcements is accessible by command !announcementslist. Enable/disable function of announcements is made by command !announcements. Announcement addition in the list to be made by command !announcements+ <period> <text> (period in minutes), and removal from the announcement list at the necessary number is made by command !announcements- <index>.

To set the period of display for chosen announcement in minutes it is possible by command !announcementperiod <index> <minutes>. Nick, from whose name announcements are shown, is set in file Vars.lua in constant AnName. In constant AnnouncementsMode sets the announcements sending type (0 - Chat, 1 - PM). In constant PublicationMode sets the publications sending type (0 - Chat, 1 - PM).

The publication goes the Operator of the Hub to all users. The registered users can refuse reception of publications by command !ispublications. The list of users in an exception is stored in file PublicationExceptions. To send the publication it is possible by command !sendpublication <text>.

To make cleaning of base of exceptions of reception of publications from not registered users it is possible by command !pubcleaning.

At text addition in the announcement or the publication the insert of special flags is possible. Flags [hub], [time], [date], [BotName], [topic] are replaced addressed to the Hub, time, date, name of the Bot and flowing topic the Hub accordingly.

Tne name of bot sets in language localisation file Text_lang.lua.


<<< back | print | To main...
PhazaSoft© Ekzekutor©
Hosted by uCoz