Notification Module

Alfred

Compatibility :

Description

This module makes it easier to send messages to groups of users (they can be botmans or ordinary contacts).
By doing so you can override the use of spam, which is limited to botmans, and patterns to match botmans.
The downside of this module is that it doesnt wait for replys. You send any message you want, but you are not going to get any result.
One of the most common usage for this module is from other modules.
For example, the GDB module will use the notification module to notify devs for the creation of a new coredump.

Configuration


{
   "vars":  ["licence"],
   "groups":   [{
         "name":  "dev",
         "users": ["guillaume.friloux@botnet.master.com"]
      }]
}
The vars object stands for Custom variables and will be used to print extra informations from the sender, by printing values of those Custom variables.
The groups object defines every existing groups, and the associated users. In this example, this means that if you send a notification to the dev group, a message will be sent from alfred to guillaume.friloux@botnet.master.com.

Commands

(11:50:12) guillaume.friloux@botman.master.com: .notification groupadd dev
(11:50:12) Alfred Pennyworth:
New group created
(11:50:25) guillaume.friloux@botman.master.com: .notification groupdel dev
(11:50:25) Alfred Pennyworth:
Group deleted
(11:51:02) guillaume.friloux@botman.master.com: .notification useradd dev guillaume.friloux@botman.master.com
(11:51:02) Alfred Pennyworth:
User added to group.
(11:51:08) guillaume.friloux@botman.master.com: .notification userdel dev guillaume.friloux@botman.master.com
(11:51:08) Alfred Pennyworth:
User deleted from group.
(11:52:20) guillaume.friloux@botman.master.com: .notification
(11:52:20) Alfred Pennyworth:
Group dev :
        guillaume.friloux@xmpp-test.asp64.lan
(11:52:35) guillaume.friloux@botman.master.com: .notification send dev Test message
(11:52:35) Alfred Pennyworth: Notification from guillaume.friloux@botman.master.com  : Test message