diff --git a/.gitignore b/.gitignore index d76a86b..2b0f018 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ res/ -data/ .luarocks *.db plugins/alive.lua diff --git a/bot/bot.lua b/bot/bot.lua index 1c1801c..cdb14ec 100644 --- a/bot/bot.lua +++ b/bot/bot.lua @@ -225,16 +225,22 @@ function create_cred( ) derpibooru_apikey = "", fb_access_token = "", gender_apikey = "", + google_apikey = "", + google_cse_id = "", instagram_access_token = "", lyricsnmusic_apikey = "", neutrino_userid = "", neutrino_apikey = "", page2images_restkey = "", soundcloud_client_id = "", + superfeedr_authorization = "=", tw_consumer_key = "", tw_consumer_secret = "", tw_access_token = "", - tw_access_token_secret = "" + tw_access_token_secret = "", + x_mashape_key = "", + yandex_translate_apikey = "", + yandex_rich_content_apikey = "" } serialize_to_file(cred, './data/credentials.lua') print ('saved credentials into ./data/credentials.lua') diff --git a/data/.gitkeep b/data/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/data/credentials.lua b/data/credentials.lua new file mode 100644 index 0000000..6f0b08f --- /dev/null +++ b/data/credentials.lua @@ -0,0 +1,55 @@ +--This is an example +do local _ = { + -- Bitly + bitly_access_token = "", + + -- Cloudconvert + cloudconvert_apikey = "", + + -- Derpibooru + derpibooru_apikey = "", + + -- Facebook + fb_access_token = "", + + -- Gender-API + gender_apikey = "", + + -- Google + google_apikey = "", + google_cse_id = "", + + -- Instagram + instagram_access_token = "", + + -- Lyricsnmusic + lyricsnmusic_apikey = "", + + -- Neutrino-API (IP-Info) + neutrino_userid = "", + neutrino_apikey = "", + + -- Page2Images + page2images_restkey = "", + + -- Soundcloud + soundcloud_client_id = "", + + -- Superfeedr + superfeedr_authorization = "=", + + -- Twitter + tw_consumer_key = "", + tw_consumer_secret = "", + tw_access_token = "", + tw_access_token_secret = "", + + -- X-Mashape-Key + x_mashape_key = "", + + -- Yandex + yandex_translate_apikey = "", + yandex_rich_content_apikey = "" +} +return _ +end