Spam Module

Alfred

Compatibility:

Description

This module ease the life of anyone trying to send messages to multiple botmans at once. It accepts patterns to match botmans, based on JID or defined custom variables.
The Spam module is a master piece of the project, as it allows you to talk with every botman of your network through Alfred, which means you don’t need to add every botman in your contact list, and to manage them one by one.

Configuration

You need to create a configuration file (/usr/local/etc/gotham/modules.conf.d/spam.conf):

{
   "vars": [
   ]
}
Put any custom variable into the vars array and it will be matched when sending spams.

Commands

(15:51:03) guillaume.friloux@botnet.master.com: .spam svr2 .gdb list
(15:51:03) Alfred Pennyworth:
Contacts that matched :
   online botman-x@botnet.master.com backup_licence[x] backup_server[svr2]
   online botman-y@botnet.master.com backup_licence[y] backup_server[svr2]

(15:51:03) Alfred Pennyworth:
Answer from botman-x@botnet.master.com :

List of coredumps :
 /var/dumps/gdb.60479.core343080962015/10/21 10:39:45
/var/dumps/bash.45189.core187555842015/11/10 14:54:44
(15:51:03) Alfred Pennyworth: Answer from botman-y@botnet.master.com : List of coredumps :
 /var/dumps/getty.735.core144752642015/10/28 18:58:38
/var/dumps/getty.707.core229498882015/10/29 11:24:21
/var/dumps/gdb.39656.core187514882015/10/30 20:55:00
/var/dumps/botman.39679.core229498882015/10/30 20:55:00
So, as you can see, when invoking the .spam command, the module will give you the list of matching bots, and it will tell you the answer of each bot.

This is a least 1 XMPP message for the list of matched bots, and 1 message per answer.
A timeout is set for bots not answering. It will tell you bots timing out on the command.