If you're not sure what fantasy means, you may remember/have seen something like "!kick <user>" in channels. This causes ChanServ to kick that particular user.
Special variables:
I'll put these before the config block so you'll have that info before you get to it. ;] You can use all the special variants for $1 through $9.
- $chan => Will be replaced with the channel you said the command in
- $1 => Will be replaced with the user's first argument
- $1- => Becomes the first argument plus everything after it (greedy)
- $1i => If the first arg is a nick, replace it with their ident/username
- $1h => If the first arg is a nick, replace it with their hostname
Config block:
Creating aliases might be a bit complex, so I'll just dump an example config right here and explain in-line with comments. =]
Code: Select all
fantasy {
// Change command prefix to \, so it becomes \dovoice etc
//cmdchar \;
// "!benice someuser" is turned into "/kick $chan someuser :You be nice now"
benice "KICK $chan $1 :You be nice now";
// "!kick someuser shut up" becomes "/kick someuser :shut up"
kick "KICK $chan $1 :$2-";
// "!invex someuser" is majikked into "/mode $chan +I *!*@someuser.tld
invex "MODE $chan +I *!*@$1h";
uninvex "MODE $chan -I *!*@$1h";
// "!safe someuser" will become "/kick $chan someuser :$chan is a safe space, someuser"
safe "KICK $chan $1 :$chan is a safe space, $1";
// It is also possible to have the same alias issue multiple commands ;]
safe "MODE $chan +b $1";
// You can also go through ChanServ, provided you have access with it
n "PRIVMSG ChanServ :KICK $chan $1 please change your nick and rejoin, thank you";
};
Get it here.