Commit Graph

31 Commits

Author SHA1 Message Date
ca86ade0fa
Made sensitivity configurable and added aliases
Before this commit, the name of the bot had to be hard coded into every
plugin. Now, the name of the bot to which it should be sensitive can be
set in the global config.hjson.

Furthermore, the default sensitivity of a plugin is only recognized at
the beginning of a sentence and is case insensitive.

Finally, the possibility to add aliases for plugins is added.
2019-02-27 19:08:09 +01:00
c8b5926d78
Admidio event plugin now makes full use of Admidio Python API
Since the API is now able to refresh the data, it is possible for the plugin to use the API in the monitoring thread as well.

This commit also includes some minor make up improvements of messages.
2019-02-03 13:35:16 +01:00
ad99432335
Updated commit of admidio_python_api 2019-02-02 16:29:14 +01:00
c46a4f6012
Added another catcher for an KeyError in the request participants callback 2019-02-02 16:25:32 +01:00
2b488ee1f8
Most of the Admidio event plugins now makes use of the Admidio Python API
This commit also adds the function which enables users to request participants from the bot.
2019-02-02 16:16:37 +01:00
a3a39f8b8f
Add initialization of submodules to installation script 2019-02-02 13:31:17 +01:00
8542c2be86
Added admidio_python_api submodule 2019-02-02 13:22:42 +01:00
06868d67ce
Added info event feature
The bot is now able to return information about a certain event to a room.
2019-01-27 17:58:24 +01:00
09dd17c9f2
Added a plugin to search through a Mediawiki instance 2019-01-20 23:38:39 +01:00
9e139a0f3e Add custom Matrix Python SDK. Solves #5 and #2
This commit releases a custom Matrix Python SDK. This means that the
most important classes---MatrixClient, Room, and MatrixHttpApi---are
inherited by Custom classes. This enables us to change behaviour or add
new features in a well structured and predictable way.

The first issue that is solved with this new custom SDK is the problem
that was introduced in #2.
2019-01-20 00:41:02 +01:00
e4d325955c Event plugin was missing host entry for MySQL connection 2019-01-14 23:59:59 +01:00
eb2b887c0a Transitioned from JSON to Hjson. Closes #3
All configuration files and all messages files should now preferrable be
done in Hjson. This format supports, i.a. features, multi line strings
and commenting. This greatly improves readability.

All installation and documentation files are also updated in this
commit.
2019-01-14 23:47:38 +01:00
8e746674c4 Added WooCommerce coupon plugin to list of available plugins 2019-01-13 12:59:23 +01:00
6cb3ecc373 Added a WooCommerce Coupon plugin
This plugin sets up a coupon on installation and sends this coupon to a
user that asks for it. The plugin supports an expiration period. After
this period, it will renew the coupon.
2019-01-13 12:54:45 +01:00
6388f5e104 Removed a requirement which I only added to test something 2019-01-13 12:52:17 +01:00
b6c9d025a8 Refactored the directory variables minimally 2019-01-13 12:51:57 +01:00
3f007cc83f Installation of requirements.txt before loading module 2019-01-13 12:50:15 +01:00
f6fd324912 Fixed a typo (charactar --> character) 2019-01-12 22:35:16 +01:00
d4e3b11072 Fixed an error in installation script
Because of the forward slashes in the directory, sed did not work. This
is solved in this commit by replacing the / separators with |.
2019-01-12 18:20:39 +01:00
eaf6561ffd Also renamed service file to new name 2019-01-12 18:10:22 +01:00
8b389b2154 Removed non-generic bot avatar 2019-01-12 18:05:10 +01:00
a6919125ae Added plugin install API
It is now specified how a plugin should be installed. Furthermore, a
"super user" is added to the install script and configuration files.
2019-01-12 18:02:34 +01:00
0d32c727fa Added installation files
This commit adds a convenient installation script for Linux and also
adds a description on how to install the bot.

Furthermore, a very simple example plugin is added. This way, new users
can easily discover the possibilities of this plugin.

Finally, the default character "Peter"---which is used within
Alcuinus---is removed, and a more generic character is added.
2019-01-12 15:13:21 +01:00
3a85bd368f Renamed directory name of admidio_events plugin
This way it is clear from which software the plugin grabs the events.
2019-01-08 23:08:57 +01:00
ef2d79d03a Fixed two typos in README 2019-01-06 18:13:04 +01:00
6350aff47e Fixed small bug in which mysql_db was assumed a class element 2019-01-06 16:46:53 +01:00
9db6136e86 Added list event function
Also refactored the code a little bit more and updated the README file
according.
2019-01-06 16:01:01 +01:00
0c78434919 Added a link to the Matrix Python SDK 2019-01-06 13:19:33 +01:00
3b0eed1bd4 Added first version of README with description on API
Furthermore, the linebreaks of LICENSE were refactored. Additionaly the
messages of the event plugin were moved to a new directory.
2019-01-06 13:13:57 +01:00
57499db3f5 Initial commit of software
This commit includes the matrix bot API
(https://github.com/shawnanastasio/python-matrix-bot-api/) and the first
proof of concept that the plugin API works. Furthermore, it includes the
first version of a plugin that acquires event from an Admidio setup
(https://admidio.org).
2018-12-16 16:38:47 +01:00
979ba24711 Initial commit 2018-12-16 16:28:14 +01:00