administration.lua: 1.8.1

me.lua: Fix for potential future bug.
README.md: Better links.
config.lua: Added comments, links, removed unnecessary things.
greetings.lua: Default configuration now built in so as to not
  crowd the config file.
.gitignore: wew lad
This commit is contained in:
topkecleon
2016-04-05 06:43:11 -04:00
parent 2efb8cec75
commit 38efb5d827
7 changed files with 91 additions and 55 deletions

View File

@ -1,26 +1,46 @@
return {
-- Your authorization token from the botfather.
bot_api_key = '',
google_api_key = '',
google_cse_key = '',
lastfm_api_key = '',
owm_api_key = '',
biblia_api_key = '',
thecatapi_key = '',
nasa_api_key = '',
yandex_key = '',
simsimi_key = '',
simsimi_trial = true,
-- Differences, in seconds, between your time and UTC.
time_offset = 0,
-- Two-letter language code.
lang = 'en',
-- Your Telegram ID.
admin = 00000000,
-- 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,
admin = 00000000,
log_chat = nil,
-- The block of text returned by /start.
about_text = [[
I am otouto, the plugin-wielding, multi-purpose Telegram bot.
I am otouto, the plugin-wielding, multipurpose Telegram bot.
Send /help to get started.
]] ,
]],
-- http://console.developers.google.com
google_api_key = '',
-- https://cse.google.com/cse
google_cse_key = '',
-- http://openweathermap.org/appid
owm_api_key = '',
-- http://last.fm/api
lastfm_api_key = '',
-- http://api.biblia.com
biblia_api_key = '',
-- http://thecatapi.com/docs.html
thecatapi_key = '',
-- http://api.nasa.gov
nasa_api_key = '',
-- http://tech.yandex.com/keys/get/?service=trnsl
yandex_key = '',
-- http://developer.simsimi.com/signUp
simsimi_key = '',
simsimi_trial = true,
errors = {
connection = 'Connection error.',
results = 'No results found.',
@ -29,37 +49,11 @@ Send /help to get started.
chatter_connection = 'I don\'t feel like talking right now.',
chatter_response = 'I don\'t know what to say to that.'
},
greetings = {
['Hello, #NAME.'] = {
'hello',
'hey',
'sup',
'hi',
'good morning',
'good day',
'good afternoon',
'good evening'
},
['Goodbye, #NAME.'] = {
'bye',
'later',
'see ya',
'good night'
},
['Welcome back, #NAME.'] = {
'i\'m home',
'i\'m back'
},
['You\'re welcome, #NAME.'] = {
'thanks',
'thank you'
}
},
plugins = {
'control.lua',
'blacklist.lua',
'about.lua',
'floodcontrol.lua',
'ping.lua',
'whoami.lua',
'nick.lua',
@ -94,4 +88,5 @@ Send /help to get started.
'help.lua',
'greetings.lua'
}
}