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
(add link to github-repo)
>Thor77
(add more installation-instructions)
 
Line 5: Line 5:
  
 
== Installation ==
 
== Installation ==
Make sure znc was compiled with <code>--enable-python</code> and the <code>modpython</code>-module is loaded.
+
Make sure znc was compiled with <code>--enable-python</code> and the <code>modpython</code>-module is loaded.<br>
 +
Download <code>slapanswer.py</code> from GitHub to <code>$ZNC-DATADIR/modules/</code>:<br>
 +
<code>
 +
wget https://github.com/Thor77/SlapAnswer/raw/master/slapanswer.py -O $ZNC-DATADIR/modules/slapanswer.py
 +
</code><br>
 
Now load ''SlapAnswer'' with <code>/msg *status loadmod slapanswer</code>
 
Now load ''SlapAnswer'' with <code>/msg *status loadmod slapanswer</code>
  

Latest revision as of 11:40, 30 June 2015

SlapAnswer is a ZNC-Module that answer slaps with random sentences. You can find the source on GitHub: https://github.com/Thor77/SlapAnswer

Installation[edit]

Make sure znc was compiled with --enable-python and the modpython-module is loaded.
Download slapanswer.py from GitHub to $ZNC-DATADIR/modules/:
wget https://github.com/Thor77/SlapAnswer/raw/master/slapanswer.py -O $ZNC-DATADIR/modules/slapanswer.py
Now load SlapAnswer with /msg *status loadmod slapanswer

Commands[edit]

/msg *slapanswer help

help[edit]

List all commands with explanations

add[edit]

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

remove[edit]

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

reset[edit]

Reset message-pool to default

list[edit]

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