-
Notifications
You must be signed in to change notification settings - Fork 1
/
Doc.rb
29 lines (26 loc) · 1.14 KB
/
Doc.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# encoding: UTF-8
class Doc
include Cinch::Plugin
match "commands"
def list
[
"https://twitter.com/[tweet-url] ➤ Display tweet",
"https://twitter.com/[username] ➤ Display twitter account information",
"https://github.com/[user]/[repo] ➤ Get Github repository information",
"!google [query] ➤ Get link to Google query",
"!mdn [query] ➤ Search on Mozilla Developer Network",
"!attack [nick] ➤ Kick [nick]'s ass",
"!pv [nick] ➤ Get [nick]'s pvs",
"!techniques ➤ Get all available moves",
"!roulette ➤ 1 chance out of 6 to die",
"!fact ➤ Get random world fact",
"!gif ➤ Get random gif from top reddit /r/gifs",
"!forkme ➤ Get URL of repo",
"!commands ➤ List of bot's commands",
"#hashtag ➤ Get last tweet which contains it"
]
end
def execute(m)
m.reply list.join("\n")
end
end