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 onJID
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.core | 34308096 | 2015/10/21 10:39:45 | |
/var/dumps/bash.45189.core | 18755584 | 2015/11/10 14:54:44 |
/var/dumps/getty.735.core | 14475264 | 2015/10/28 18:58:38 | |
/var/dumps/getty.707.core | 22949888 | 2015/10/29 11:24:21 | |
/var/dumps/gdb.39656.core | 18751488 | 2015/10/30 20:55:00 | |
/var/dumps/botman.39679.core | 22949888 | 2015/10/30 20:55:00 |
.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.