To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "SlapAnswer"

From ZNC
Jump to navigation Jump to search
>Thor77
(SlapAnswer is a ZNC-Module that answer slaps with random sentences.)
 
>Thor77
Line 13: Line 13:
  
 
=== add ===
 
=== add ===
<code>add <msg></code>
+
<code>add <msg></code><br>
Add message to the message-pool
+
Add message to the message-pool<br>
 +
<code>{nick}</code> will be replaced with the nick of the slap-invoker.
  
 
=== remove ===
 
=== remove ===

Revision as of 19:08, 7 June 2015

SlapAnswer is a ZNC-Module that answer slaps with random sentences.

Installation

Make sure znc was compiled with --enable-python and the modpython-module is loaded. Now load SlapAnswer with /msg *status loadmod slapanswer

Commands

/msg *slapanswer help

help

List all commands with explanations

add

add <msg>
Add message to the message-pool
{nick} will be replaced with the nick of the slap-invoker.

remove

remove <id> Remove message with id <id> from the message-pool

reset

Reset message-pool to default

list

List messages in the message-pool
<id> | <message>
0 | Hey, don't slap me :(