From 512133a3c45620c794cb4ada289795f436534437 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sun, 23 Apr 2017 20:39:48 +0200 Subject: [PATCH] [shortutils] Add !api and remove !proc --- COMMANDS.md | 1 + shortutils.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/COMMANDS.md b/COMMANDS.md index 960554f..6493b36 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -72,6 +72,7 @@ Required arguments are enclosed in { and }, optional arguments are enclosed in [ !next Say: "Another satisfied customer. Next!" Anyone !pil [nick] Link to Lua PIL Anyone !git [nick] Link to Git manual Anyone + !api [nick] Link to API docs Anyone !btc [currency] Get Bitcoin price for specified currency Anyone tell.py !tell {nick} {message} Tell somebody a message Anyone diff --git a/shortutils.py b/shortutils.py index 6493efd..36ac894 100755 --- a/shortutils.py +++ b/shortutils.py @@ -30,7 +30,7 @@ questions = make_cmd("questions", "someone thinks that your question is inaccura pil = make_cmd("pil", "someone thinks you need to brush up on or learn Lua, please go to: http://lua.org/pil/") git = make_cmd("git", "someone thinks you need to brush up on or learn Git, please go to: http://git-scm.com/book/") stfu = make_cmd("stfu", "someone thinks you need to shut the fuck up before you get muted.") -proc = make_cmd("proc", "someone thinks you need to stop procrastinating.") +api = make_cmd("api", "someone thinks you should read the API docs, please go to: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt") def next(phenny, input): """Next one please"""