diff --git a/.gitignore b/.gitignore index 41a6a32..76de739 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ sfx_files # IDE files .vs .idea + +# Gitpod +.gitpod.yml diff --git a/auth.json.example b/auth.json.example index 9e11057..4f9772f 100644 --- a/auth.json.example +++ b/auth.json.example @@ -12,5 +12,6 @@ "twitch_client_secret": "get this from the twitch dev dashboard once you've created your twitch app", "finage_api_key": "create one at https://finage.co.uk/", "spotify_client_id": "create an app at https://developer.spotify.com/my-applications/", - "spotify_client_secret": "create an app at https://developer.spotify.com/my-applications/" + "spotify_client_secret": "create an app at https://developer.spotify.com/my-applications/", + "giphy_api_key": "create an api app at https://developers.giphy.com/dashboard/?create=true" } diff --git a/package-lock.json b/package-lock.json index 552000d..af98864 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "DiscordBot", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "DiscordBot", - "version": "0.4.0", + "version": "0.5.0", "hasInstallScript": true, "license": "GPL-2.0", "dependencies": { @@ -10123,16 +10123,6 @@ "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" }, - "acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" - }, "addressparser": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/addressparser/-/addressparser-0.1.3.tgz", diff --git a/plugins/Giphy/giphy.js b/plugins/Giphy/giphy.js index bb9441b..cd3ba56 100644 --- a/plugins/Giphy/giphy.js +++ b/plugins/Giphy/giphy.js @@ -1,13 +1,13 @@ -// command is broken, looks like Giphy finally stopped supporting the API key in the developer docs -/*exports.commands = [ +exports.commands = [ "giphy" -]*/ +] var qs = require("querystring"); +var AuthDetails = require("../../auth.json"); var giphy_config = { - "api_key": "dc6zaTOxFJmzC", + "api_key": AuthDetails.giphy_api_key, "rating": "r", "url": "http://api.giphy.com/v1/gifs/random", "permission": ["NORMAL"]