To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.
SlapAnswer: Difference between revisions
>Thor77 |
>Thor77 add more installation-instructions |
||
(5 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{{External Module}} | {{External Module}} | ||
''SlapAnswer'' is a ZNC-Module that answer slaps with random sentences. | ''SlapAnswer'' is a ZNC-Module that answer slaps with random sentences. | ||
You can find the source on GitHub: https://github.com/Thor77/SlapAnswer | |||
== 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> | ||
Line 14: | Line 19: | ||
=== add === | === add === | ||
<code>add <msg></code><br> | <code>add <msg></code><br> | ||
Add | Add <code>msg</code> to the message-pool<br> | ||
<code>{nick}</code> will be replaced with the nick of the slap-invoker. | <code>{nick}</code> will be replaced with the nick of the slap-invoker. | ||
=== remove === | === remove === | ||
<code>remove <id></code> | <code>remove <id></code><br> | ||
Remove message with id <code> | Remove message with id <code>id</code> from the message-pool | ||
=== reset === | === reset === |
Latest revision as of 11:40, 30 June 2015
This is an external module. Please note that it may or may not work with the current release (1.9.1). This module is not included in the default ZNC installation, and you will need to manually compile it before you can load this module. Contact the author if you have any questions, but feel free to ask in #znc on Libera.Chat. Someone might be able to help you there. |
SlapAnswer is a ZNC-Module that answer slaps with random sentences. You can find the source on GitHub: https://github.com/Thor77/SlapAnswer
Installation
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
/msg *slapanswer help
help
List all commands with explanations
add
add <msg>
Add msg
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 :(