botpop/plugins/iamalive
Arthur Poulet 5a8e5f8594 improve iaa plugin: prepare data prospection :D 2015-10-23 19:25:16 +02:00
..
migrations improve iaa plugin: prepare data prospection :D 2015-10-23 19:25:16 +02:00
README.md update iamalive readme 2015-08-16 05:41:53 +02:00
admin.rb large database improvement. add admins extension 2015-08-16 13:15:27 +02:00
entry.rb improve iaa plugin: prepare data prospection :D 2015-10-23 19:25:16 +02:00

README.md

I Am Alive

I am alive is a plugin, that allows to bot to answer to me :)

Initialization

Database

Firstly, create the database and migrate it. To do this, use the following command. In the modules_config.yml file, configure it for your engine. As it use sequel engine, it is compatible with sqlite, mysql, postgres, etc. Checkout the sequel documentaiton for more informations. Then, execute one of two:

sequel -m plugins/iamalive/migrations sqlite://plugins/iamalive/db.sqlite3
sequel -m plugins/iamalive/migrations postgres://root:toor@localhost:5432/botpop_iamalive
...

You can change the name of the database via the global configuration file (see the example).

User / Admin

Only authorized users have the rights to administrate the iaa plugin. Only when there is no administrator (by default), you can use the command "!iaa user add NICK" to add your NICK to the database. Be sure you have a protected identity.

Then, only administrators can add / remove admin from the list.