Trimmed plugins which require API keys from the default config.
This commit is contained in:
parent
38efb5d827
commit
550d0743b7
@ -23,6 +23,9 @@ Clone the repository and set the following values in `config.lua`:
|
|||||||
|
|
||||||
- `bot_api_key` as your bot authorization token from the BotFather.
|
- `bot_api_key` as your bot authorization token from the BotFather.
|
||||||
- `admin` as your Telegram ID.
|
- `admin` as your Telegram ID.
|
||||||
|
|
||||||
|
Optionally:
|
||||||
|
|
||||||
- `time_offset` as the difference, in seconds, of your system clock to UTC.
|
- `time_offset` as the difference, in seconds, of your system clock to UTC.
|
||||||
- `lang` as the two-letter code representing your language.
|
- `lang` as the two-letter code representing your language.
|
||||||
|
|
||||||
@ -38,7 +41,7 @@ Note that certain plugins, such as translate.lua and greetings.lua, will require
|
|||||||
- bible.lua: [Biblia](http://api.biblia.com) API key (`biblia_api_key`)
|
- bible.lua: [Biblia](http://api.biblia.com) API key (`biblia_api_key`)
|
||||||
- cats.lua: [The Cat API](http://thecatapi.com) API key (optional) (`thecatapi_key`)
|
- cats.lua: [The Cat API](http://thecatapi.com) API key (optional) (`thecatapi_key`)
|
||||||
- apod.lua: [NASA](http://api.nasa.gov) API key (`nasa_api_key`)
|
- apod.lua: [NASA](http://api.nasa.gov) API key (`nasa_api_key`)
|
||||||
- translate.lua: [Yandex](http://tech.yandex.com/keys/get/?service=trnsl) API key (`yandex_key`)
|
- translate.lua: [Yandex](http://tech.yandex.com/keys/get) API key (`yandex_key`)
|
||||||
- chatter.lua: [SimSimi](http://developer.simsimi.com/signUp) API key (`simsimi_key`)
|
- chatter.lua: [SimSimi](http://developer.simsimi.com/signUp) API key (`simsimi_key`)
|
||||||
|
|
||||||
* * *
|
* * *
|
||||||
|
13
config.lua
13
config.lua
@ -35,13 +35,13 @@ Send /help to get started.
|
|||||||
thecatapi_key = '',
|
thecatapi_key = '',
|
||||||
-- http://api.nasa.gov
|
-- http://api.nasa.gov
|
||||||
nasa_api_key = '',
|
nasa_api_key = '',
|
||||||
-- http://tech.yandex.com/keys/get/?service=trnsl
|
-- http://tech.yandex.com/keys/get
|
||||||
yandex_key = '',
|
yandex_key = '',
|
||||||
-- http://developer.simsimi.com/signUp
|
-- http://developer.simsimi.com/signUp
|
||||||
simsimi_key = '',
|
simsimi_key = '',
|
||||||
simsimi_trial = true,
|
simsimi_trial = true,
|
||||||
|
|
||||||
errors = {
|
errors = { -- Generic error messages used in various plugins.
|
||||||
connection = 'Connection error.',
|
connection = 'Connection error.',
|
||||||
results = 'No results found.',
|
results = 'No results found.',
|
||||||
argument = 'Invalid argument.',
|
argument = 'Invalid argument.',
|
||||||
@ -50,7 +50,7 @@ Send /help to get started.
|
|||||||
chatter_response = 'I don\'t know what to say to that.'
|
chatter_response = 'I don\'t know what to say to that.'
|
||||||
},
|
},
|
||||||
|
|
||||||
plugins = {
|
plugins = { -- To enable a plugin, add its name to the list.
|
||||||
'control.lua',
|
'control.lua',
|
||||||
'blacklist.lua',
|
'blacklist.lua',
|
||||||
'about.lua',
|
'about.lua',
|
||||||
@ -59,9 +59,7 @@ Send /help to get started.
|
|||||||
'nick.lua',
|
'nick.lua',
|
||||||
'echo.lua',
|
'echo.lua',
|
||||||
'gSearch.lua',
|
'gSearch.lua',
|
||||||
'gImages.lua',
|
|
||||||
'gMaps.lua',
|
'gMaps.lua',
|
||||||
'youtube.lua',
|
|
||||||
'wikipedia.lua',
|
'wikipedia.lua',
|
||||||
'hackernews.lua',
|
'hackernews.lua',
|
||||||
'imdb.lua',
|
'imdb.lua',
|
||||||
@ -69,20 +67,15 @@ Send /help to get started.
|
|||||||
'urbandictionary.lua',
|
'urbandictionary.lua',
|
||||||
'time.lua',
|
'time.lua',
|
||||||
'eightball.lua',
|
'eightball.lua',
|
||||||
'reactions.lua',
|
|
||||||
'dice.lua',
|
'dice.lua',
|
||||||
'reddit.lua',
|
'reddit.lua',
|
||||||
'xkcd.lua',
|
'xkcd.lua',
|
||||||
'slap.lua',
|
'slap.lua',
|
||||||
'commit.lua',
|
'commit.lua',
|
||||||
'pun.lua',
|
'pun.lua',
|
||||||
'pokedex.lua',
|
|
||||||
'bandersnatch.lua',
|
|
||||||
'currency.lua',
|
'currency.lua',
|
||||||
'cats.lua',
|
'cats.lua',
|
||||||
'hearthstone.lua',
|
|
||||||
'shout.lua',
|
'shout.lua',
|
||||||
'apod.lua',
|
|
||||||
'patterns.lua',
|
'patterns.lua',
|
||||||
-- Put new plugins above this line.
|
-- Put new plugins above this line.
|
||||||
'help.lua',
|
'help.lua',
|
||||||
|
Reference in New Issue
Block a user