From ef6e633da97a9aafbf9e9b80ac82df2c68bdca55 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Mon, 11 May 2015 22:02:03 +0200 Subject: [PATCH] little changes on tweet.lua and twitter_send.lua --- plugins/tweet.lua | 8 ++++---- plugins/twitter_send.lua | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/plugins/tweet.lua b/plugins/tweet.lua index 3bb05c3..1952ff8 100644 --- a/plugins/tweet.lua +++ b/plugins/tweet.lua @@ -231,10 +231,10 @@ end return { description = "Random tweew from user", usage = { - "!tweet id [id]: Get a random tweet from the user with that ID", - "!tweet id [id] last: Get a random tweet from the user with that ID", - "!tweet name [name]: Get a random tweet from the user with that name", - "!tweet name [name] last: Get a random tweet from the user with that name" + "/tweet id [id]: Get a random tweet from the user with that ID", + "/tweet id [id] last: Get a random tweet from the user with that ID", + "/tweet name [name]: Get a random tweet from the user with that name", + "/tweet name [name] last: Get a random tweet from the user with that name" }, patterns = { "^/tweet (id) ([%w_%.%-]+)$", diff --git a/plugins/twitter_send.lua b/plugins/twitter_send.lua index 401908e..26f8a8f 100644 --- a/plugins/twitter_send.lua +++ b/plugins/twitter_send.lua @@ -38,7 +38,7 @@ function run(msg, matches) return "Fehler: "..response_code end local data = json:decode(response_body) - return "Tweet gesendet!"..data.id_str + return "Tweet gesendet!" end return { @@ -46,7 +46,6 @@ return { usage = "", patterns = {"^/tw (.+)"}, run = run, - privileged = true } end \ No newline at end of file