swapped ! for /

This commit is contained in:
dupie 2015-07-08 03:38:04 -04:00
parent df1d6a206f
commit af3da2abfd
31 changed files with 82 additions and 83 deletions

View File

@ -20,4 +20,5 @@ TIME_OFFSET is the time difference, in seconds, between your system clock. It is
"people" table is for the personality plugin:
`"123456789": "foobar"`
ID number must be a string.

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!8ball
/8ball
Magic 8-ball. Returns a standard 8ball message, unless called with "y/n", where it will return a less verbose answer.
]]
PLUGIN.triggers = {
'^!helix',
'^!8ball',
'^/helix',
'^/8ball',
'y/n%p?$'
}

View File

@ -1,7 +1,7 @@
local PLUGIN = {}
PLUGIN.triggers = {
'^!admin '
'^/admin '
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!bandersnatch
/bandersnatch
This is a Benedict Cumberbatch name generator.
]]
PLUGIN.triggers = {
'^!bandersnatch',
'^!bc$'
'^/bandersnatch',
'^/bc$'
}
PLUGIN.fullnames = { "Wimbledon Tennismatch", "Rinkydink Curdlesnoot", "Butawhiteboy Cantbekhan", "Benadryl Claritin", "Bombadil Rivendell", "Wanda's Crotchfruit", "Biblical Concubine", "Syphilis Cankersore", "Buckminster Fullerene", "Bourgeoisie Capitalist" }

View File

@ -1,14 +1,14 @@
local PLUGIN = {}
PLUGIN.doc = [[
!bible <verse>
/bible <verse>
Returns a verse from the bible, King James Version. Use a standard or abbreviated reference (John 3:16, Jn3:16).
http://biblia.com
]]
PLUGIN.triggers = {
'^!bible',
'^!b '
'^/bible',
'^/b '
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!btc <currency> [amount]
/btc <currency> [amount]
Gives bitcoin prices for the given currency, and optionally conversion of an amount to and from that currency.
BitcoinAverage Price Index https://bitcoinaverage.com/
]]
PLUGIN.triggers = {
'^!btc'
'^/btc'
}
function PLUGIN.action(msg)

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!calc <expression>
/calc <expression>
This command solves math expressions and does conversion between common units. See mathjs.org/docs/expressions/syntax for a list of accepted syntax.
]]
PLUGIN.triggers = {
'^!calc'
'^/calc'
}
function PLUGIN.action(msg)

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!commit
/commit
http://whatthecommit.com.
]]
PLUGIN.triggers = {
'^!commit'
'^/commit'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!roll [range]
/roll [range]
Roll a die. Use any positive number for range or use D&D notation.
Example: !roll 4D100 will roll a 100-sided die four times.
]]
PLUGIN.triggers = {
'^!roll'
'^/roll'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!dogify <lines/separatedby/slashes>
/dogify <lines/separatedby/slashes>
Produces a doge image from dogr.io. Newlines are indicated by a forward slash. Words do not need to be spaced, but spacing is supported. Will post a previewed link rather than an image.
]]
PLUGIN.triggers = {
'^!doge ',
'^!dogify '
'^/doge ',
'^/dogify '
}
function PLUGIN.action(msg)

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!echo <text>
/echo <text>
Repeat a string.
]]
PLUGIN.triggers = {
'^!echo'
'^/echo'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!fortune
/fortune
Get a random fortune from the UNIX fortune program.
]]
PLUGIN.triggers = {
'^!fortune',
'^!f$'
'^/fortune',
'^/f$'
}
function PLUGIN.action(msg)

View File

@ -1,15 +1,15 @@
local PLUGIN = {}
PLUGIN.doc = [[
!images <query>
/images <query>
This command performs a Google Images search for the given query. One random top result is returned. Safe search is enabled by default; use '!insfw' to get potentially NSFW results.
]]
PLUGIN.triggers = {
'^!images?',
'^!img',
'^!i ',
'^!insfw'
'^/images?',
'^/img',
'^/i ',
'^/insfw'
}
PLUGIN.exts = {
@ -24,7 +24,7 @@ function PLUGIN.action(msg)
local url = 'http://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8'
if not string.match(msg.text, '^!insfw ') then
if not string.match(msg.text, '^/insfw ') then
url = url .. '&safe=active'
end

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!loc <location>
/loc <location>
Sends location data for query, taken from Google Maps. Works for countries, cities, landmarks, etc.
]]
PLUGIN.triggers = {
'^!loc'
'^/loc'
}
function PLUGIN.action(msg)

View File

@ -1,21 +1,21 @@
local PLUGIN = {}
PLUGIN.doc = [[
!google <query>
/google <query>
This command performs a Google search for the given query. Four results are returned. Safe search is enabled by default; use '!gnsfw' to get potentially NSFW results. Four results are returned for a group chat, or eight in a private message.
]]
PLUGIN.triggers = {
'^!g ',
'^!google',
'^!gnsfw'
'^/g ',
'^/google',
'^/gnsfw'
}
function PLUGIN.action(msg)
local url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0'
if not string.match(msg.text, '^!gnsfw ') then
if not string.match(msg.text, '^/gnsfw ') then
url = url .. '&safe=active'
end

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!giphy [query]
/giphy [query]
Returns a random or search-resulted GIF from giphy.com. Results are limited to PG-13 by default; use '!gifnsfw' to get potentially NSFW results.
]]
PLUGIN.triggers = {
'^!giphy',
'^!gifnsfw'
'^/giphy',
'^/gifnsfw'
}
function PLUGIN.action(msg)
@ -16,7 +16,7 @@ function PLUGIN.action(msg)
local random_url = 'http://tv.giphy.com/v1/gifs/random?api_key=' .. config.GIPHY_API_KEY
local result_url = ''
if string.match(msg.text, '^!giphynsfw') then
if string.match(msg.text, '^/giphynsfw') then
search_url = search_url .. '&rating=r&q='
random_url = random_url .. '&rating=r'
else

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!hackernews
/hackernews
Returns some top stories from Hacker News. Four in a group or eight in a private message.
]]
PLUGIN.triggers = {
'^!hackernews',
'^!hn$'
'^/hackernews',
'^/hn$'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!help [command]
/help [command]
Get list of basic information for all commands, or more detailed documentation on a specified command.
]]
PLUGIN.triggers = {
'^!help',
'^!h$',
'^/help',
'^/h$',
'^/help'
}

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!hex <number>
/hex <number>
This function converts a number to or from hexadecimal.
]]
PLUGIN.triggers = {
'^!hex '
'^/hex '
}
function PLUGIN.action(msg)

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!imdb <movie | TV series>
/imdb <movie | TV series>
This function retrieves the IMDb info for a given film or television series, including the year, genre, imdb rating, runtime, and a summation of the plot.
]]
PLUGIN.triggers = {
'^!imdb'
'^/imdb'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!dex <pokemon>
/dex <pokemon>
Get Pokedex information for a given Pokemon.
Includes national ID number, type, height, weight, and a description from a random regional dex.
]]
PLUGIN.triggers = {
'^!dex'
'^/dex'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!pun
/pun
Get a random pun.
Have a recommendation? PM @topkecleon.
]]
PLUGIN.triggers = {
'^!pun'
'^/pun'
}
PLUGIN.puns = {

View File

@ -1,14 +1,14 @@
local PLUGIN = {}
PLUGIN.doc = [[
!reddit [r/subreddit | query]
/reddit [r/subreddit | query]
This command returns top results for a given query or subreddit. NSFW posts are marked as such.
]]
PLUGIN.triggers = {
'^!reddit',
'^!r$',
'^!r '
'^/reddit',
'^/r$',
'^/r '
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!remind <delay> <message>
/remind <delay> <message>
Set a reminder for yourself. First argument is the number of minutes until you wish to be reminded.
]]
PLUGIN.triggers = {
'^!remind$',
'^!remind '
'^/remind$',
'^/remind '
}
function PLUGIN.action(msg)

View File

@ -1,7 +1,6 @@
local PLUGIN = {}
PLUGIN.triggers = {
'^!shrug',
'/shrug'
}

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!slap [victim]
/slap [victim]
Slap someone!
]]
PLUGIN.triggers = {
'^!slap'
'^/slap'
}
function PLUGIN.getSlap(slapper, victim)

View File

@ -3,12 +3,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!time <location>
/time <location>
Sends the time and timezone for a given location.
]]
PLUGIN.triggers = {
'^!time'
'^/time'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!ud <term>
/ud <term>
Returns the first definition for a given term from Urban Dictionary.
]]
PLUGIN.triggers = {
'^!ud',
'^!urbandictionary'
'^/ud',
'^/urbandictionary'
}
function PLUGIN.action(msg)

View File

@ -1,13 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!weather <location>
/weather <location>
Returns the current temperature and weather conditions for a specified location.
Non-city locations are accepted; "!weather Buckingham Palace" will return the weather for Westminster.
]]
PLUGIN.triggers = {
'^!weather'
'^/weather'
}
function PLUGIN.action(msg)

View File

@ -1,14 +1,13 @@
local PLUGIN = {}
PLUGIN.doc = [[
!whoami
/whoami
Get the user ID for yourself and the group.
]]
PLUGIN.triggers = {
'^!whoami',
'^!ping',
'^/ping'
'^/whoami',
'^/ping',
}
function PLUGIN.action(msg)

View File

@ -1,12 +1,12 @@
local PLUGIN = {}
PLUGIN.doc = [[
!xkcd [search]
/xkcd [search]
This command returns an xkcd strip, its number, and its "secret" text. You may search for a specific strip or get a random one.
]]
PLUGIN.triggers = {
'^!xkcd'
'^/xkcd'
}
function PLUGIN.action(msg)