2015-11-25 03:22:04 +01:00
|
|
|
return {
|
2016-04-05 12:43:11 +02:00
|
|
|
|
|
|
|
-- Your authorization token from the botfather.
|
2015-11-25 03:22:04 +01:00
|
|
|
bot_api_key = '',
|
2016-04-12 11:24:56 +02:00
|
|
|
-- Your Telegram ID.
|
|
|
|
admin = 00000000,
|
2016-04-05 12:43:11 +02:00
|
|
|
-- Two-letter language code.
|
|
|
|
lang = 'en',
|
|
|
|
-- The channel, group, or user to send error reports to.
|
|
|
|
-- If this is not set, errors will be printed to the console.
|
|
|
|
log_chat = nil,
|
|
|
|
-- The port used to communicate with tg for administration.lua.
|
|
|
|
-- If you change this, make sure you also modify launch-tg.sh.
|
|
|
|
cli_port = 4567,
|
|
|
|
-- The block of text returned by /start.
|
|
|
|
about_text = [[
|
|
|
|
I am otouto, the plugin-wielding, multipurpose Telegram bot.
|
|
|
|
|
|
|
|
Send /help to get started.
|
|
|
|
]],
|
2016-05-27 05:28:44 +02:00
|
|
|
-- The symbol that starts a command. Usually noted as '/' in documentation.
|
|
|
|
cmd_pat = '/',
|
otouto 3.11
"things occurred"
Added some utilities (id_from_username, id_from_message), removed some utilities (latcyr, others?).
Removed cycle-wasting "shortcuts" -- no more automatic id_str or name; text_lower remains.
Moved userdata (nicknames, lastfm, etc) to a different tree in the database (automatic migration will occur). /me now returns userdata.
Speaking of migration, database now stores the latest version run to make future automigration easy.
Database now saves hourly rather than minutely.
Changed readme and some plugins to reflect above changes.
Removed broken rockspec (Brayden, feel free to re-add once it's working).
Added option to automatically block people (via drua) when blacklisted.
Fixed about.lua trigger problems.
administration 1.11 - Removed /kickme and /broadcast. Users should leave manually, and announcements should be made via channel rather than spam. /setqotd now handles forwarded messages correctly. /kick, /ban, /hammer,
/mod, /admin now support multiple arguments. Added get_targets function. No migration is necessary.
2016-07-05 09:29:11 +02:00
|
|
|
-- If drua is used, should a user be blocked when he's blacklisted? (and vice-versa)
|
|
|
|
drua_block_on_blacklist = false,
|
2016-04-05 12:43:11 +02:00
|
|
|
|
2016-05-29 19:08:39 +02:00
|
|
|
-- https://datamarket.azure.com/dataset/bing/search
|
|
|
|
bing_api_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://console.developers.google.com
|
2015-12-05 16:03:43 +01:00
|
|
|
google_api_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- https://cse.google.com/cse
|
2015-12-05 16:03:43 +01:00
|
|
|
google_cse_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://openweathermap.org/appid
|
2015-11-25 03:22:04 +01:00
|
|
|
owm_api_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://last.fm/api
|
|
|
|
lastfm_api_key = '',
|
|
|
|
-- http://api.biblia.com
|
2015-11-25 03:22:04 +01:00
|
|
|
biblia_api_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://thecatapi.com/docs.html
|
2015-11-25 03:22:04 +01:00
|
|
|
thecatapi_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://api.nasa.gov
|
2016-01-14 20:56:30 +01:00
|
|
|
nasa_api_key = '',
|
2016-04-05 13:10:53 +02:00
|
|
|
-- http://tech.yandex.com/keys/get
|
2016-02-13 20:37:59 +01:00
|
|
|
yandex_key = '',
|
2016-04-05 12:43:11 +02:00
|
|
|
-- http://developer.simsimi.com/signUp
|
2016-01-21 20:57:06 +01:00
|
|
|
simsimi_key = '',
|
|
|
|
simsimi_trial = true,
|
2015-11-25 03:22:04 +01:00
|
|
|
|
2016-06-14 23:57:36 +02:00
|
|
|
errors = { -- Generic error messages.
|
|
|
|
generic = 'An unexpected error occurred.',
|
2015-11-25 03:22:04 +01:00
|
|
|
connection = 'Connection error.',
|
|
|
|
results = 'No results found.',
|
|
|
|
argument = 'Invalid argument.',
|
|
|
|
syntax = 'Invalid syntax.',
|
|
|
|
chatter_connection = 'I don\'t feel like talking right now.',
|
|
|
|
chatter_response = 'I don\'t know what to say to that.'
|
|
|
|
},
|
2016-04-05 12:43:11 +02:00
|
|
|
|
2016-04-05 13:10:53 +02:00
|
|
|
plugins = { -- To enable a plugin, add its name to the list.
|
2016-04-14 05:48:20 +02:00
|
|
|
'control',
|
|
|
|
'blacklist',
|
|
|
|
'about',
|
|
|
|
'ping',
|
|
|
|
'whoami',
|
|
|
|
'nick',
|
|
|
|
'echo',
|
|
|
|
'gMaps',
|
|
|
|
'wikipedia',
|
|
|
|
'hackernews',
|
|
|
|
'imdb',
|
|
|
|
'calc',
|
|
|
|
'urbandictionary',
|
|
|
|
'time',
|
|
|
|
'eightball',
|
|
|
|
'dice',
|
|
|
|
'reddit',
|
|
|
|
'xkcd',
|
|
|
|
'slap',
|
|
|
|
'commit',
|
|
|
|
'pun',
|
|
|
|
'currency',
|
|
|
|
'cats',
|
|
|
|
'shout',
|
2016-01-14 20:38:26 +01:00
|
|
|
-- Put new plugins above this line.
|
2016-04-14 05:48:20 +02:00
|
|
|
'help',
|
|
|
|
'greetings'
|
2015-11-25 03:22:04 +01:00
|
|
|
}
|
2016-04-05 12:43:11 +02:00
|
|
|
|
2015-11-25 03:22:04 +01:00
|
|
|
}
|