diff --git a/dot-commands/gif.js b/dot-commands/gif.js index 207ed79..9f5d8bb 100644 --- a/dot-commands/gif.js +++ b/dot-commands/gif.js @@ -3,7 +3,7 @@ const axios = require('axios'); const dotenv = require('dotenv').config(); const Tenor = require('tenorjs-v2'); -const tenor = new Tenor(process.env.tenorAPIKey); +const tenor = new Tenor(process.env.TENOR_API_KEY); // TODO: Tenor has changed API versions, switch from TenorJS (unmaintained) to axios for // general API usage. See: https://github.com/Jinzulen/TenorJS/issues/12 // see also: https://developers.google.com/tenor/guides/migrate-from-v1 diff --git a/main.js b/main.js index fbc09e3..7f15dab 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,7 @@ const dotenv = require('dotenv'); dotenv.config(); const token = process.env.TOKEN; -const statusChannelId = process.env.statusChannelId; +const statusChannelId = process.env.STATUS_CHANNEL_ID; // Discord.JS const { Client } = require('discord.js-selfbot-v13'); @@ -20,7 +20,7 @@ const { MessageActionRow, MessageButton } = require('discord.js'); const fn = require('./functions.js'); const config = require('./config.json'); const strings = require('./strings.json'); -const isDev = process.env.isDev; +const isDev = process.env.IS_DEV; client.once('ready', () => { fn.collections.slashCommands(client); @@ -33,9 +33,9 @@ client.once('ready', () => { fn.download.strains(client); fn.download.medicalAdvice(client); console.log('Ready!'); - // client.channels.fetch(statusChannelId).then(channel => { - // channel.send(`${new Date().toISOString()} -- <@${process.env.ownerId}>\nStartup Sequence Complete`); - // }); + client.channels.fetch(statusChannelId).then(channel => { + channel.send(`${new Date().toISOString()} -- <@${process.env.OWNER_ID}>\nStartup Sequence Complete`); + }); }); // slash-commands diff --git a/package.json b/package.json index 580c68c..a7950d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodbot", - "version": "3.1.1", + "version": "3.1.2", "description": "Nods and Nod Accessories.", "main": "main.js", "dependencies": { @@ -14,7 +14,7 @@ "fuzzy-search": "^3.2.1", "mysql": "^2.18.1", "tenorjs": "1.0.10", - "tenorjs-v2": "^1.0.1" + "tenorjs-v2": "^1.0.2" }, "engines": { "node": "^20.x"