little changes on tweet.lua and twitter_send.lua
This commit is contained in:
		| @@ -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_%.%-]+)$", | ||||
|   | ||||
| @@ -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 | ||||
		Reference in New Issue
	
	Block a user