diff --git a/COMMANDS.md b/COMMANDS.md new file mode 100644 index 0000000..98c887b --- /dev/null +++ b/COMMANDS.md @@ -0,0 +1,57 @@ +Commands +======== +Required arguments are enclosed in { and }, optional arguments are enclosed in \[ and \] +$botname refers to the name of the IRC bot, e.g. MinetestBot + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Command Description Useable by
admin.py
!join {channel} [channel-key] Join the specified channel Admins
!part {channel} Leave the specified channel Admins
!quit Disconnect from IRC Server Owner
$botname: quit Disconnect from IRC Server Owner
!msg {channel/user} {message} Send message to channel/user Admins
!me {channel/user} {message} Send action to channel/user Admins
antiabuse.py
!ignore {user} Add user to ignore list Admins
!unignore {user} Remove user from ignore list Admins
calc.py
!c {expression} Calculate expression using Google Calculator Anyone
forumutils.py
!sfu {searchstring} Search Minetest Forum users using searchstring Anyone
!sfulimit {user} {'reset'/number} Set search limit for user Admins
ping.py
(hi|hello|hey) $botname Reply with (Hi|Hello|Hey)( |!) Anyone
reload.py
$botname: reload {module} Reloads specified module Admins
rutils.py
!rev {string} Reverse String Anyone
!b64e {string} Base64-encode a string Anyone
!b64d {string} Base64-decode a string Anyone
!b32e {string} Base32-encode a string Anyone
!b32d {string} Base32-decode a string Anyone
!b16e {string} Base16-encode a string Anyone
!b16d {string} Base16-decode a string Anyone
!crc32 {string} Hash a string using crc32 Anyone
!hex {string} "Hexlify" a string Anyone
!unhex {string} Un-"Hexlify" a string Anyone
!uuencode {string} uuencode a string Anyone
!uudecode {string} uudecode a string Anyone
search.py
!g {string} Output first Google result for string Anyone
!gc {string} Output Google result count for string Anyone
seen.py
!seen {person} Output when person was last seen Anyone
server.py
!server Get random server from servers.minetest.ru Anyone
serverup.py
!up {IP/hostname} [port] Check if server at IP/hostname is up Anyone
Supports multiple Ports e.g. 123-456,999
shorten.py
!sh {service} {url} Shortens URL Anyone
Currently supports: id.gd, v.gd
twitter.py
!tw {link/username/tweet_id} Query Tweet from Twitter Anyone
wikipedia.py
!wik {term} Query wiki.minetst.com for term Anyone
diff --git a/help.py b/help.py new file mode 100644 index 0000000..5eba46e --- /dev/null +++ b/help.py @@ -0,0 +1,9 @@ +def help(phenny, input): + """Help command""" + for x in phenny.bot.commands["high"].values(): + if x[0].__name__ == "aa_hook": + if x[0](phenny, input): + return # Abort function + phenny.say("https://github.com/sfan5/minetestbot-modules/blob/master/COMMANDS.md") + +help.commands = ['help']