Fix startup message
All checks were successful
NodBot PE Dockerization / build (push) Successful in 1m16s

This commit is contained in:
Skylar Grant 2024-09-22 19:46:44 -04:00
parent 57f729de24
commit f1459e9d91
3 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ const axios = require('axios');
const dotenv = require('dotenv').config(); const dotenv = require('dotenv').config();
const Tenor = require('tenorjs-v2'); 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 // TODO: Tenor has changed API versions, switch from TenorJS (unmaintained) to axios for
// general API usage. See: https://github.com/Jinzulen/TenorJS/issues/12 // general API usage. See: https://github.com/Jinzulen/TenorJS/issues/12
// see also: https://developers.google.com/tenor/guides/migrate-from-v1 // see also: https://developers.google.com/tenor/guides/migrate-from-v1

10
main.js
View File

@ -4,7 +4,7 @@
const dotenv = require('dotenv'); const dotenv = require('dotenv');
dotenv.config(); dotenv.config();
const token = process.env.TOKEN; const token = process.env.TOKEN;
const statusChannelId = process.env.statusChannelId; const statusChannelId = process.env.STATUS_CHANNEL_ID;
// Discord.JS // Discord.JS
const { Client } = require('discord.js-selfbot-v13'); const { Client } = require('discord.js-selfbot-v13');
@ -20,7 +20,7 @@ const { MessageActionRow, MessageButton } = require('discord.js');
const fn = require('./functions.js'); const fn = require('./functions.js');
const config = require('./config.json'); const config = require('./config.json');
const strings = require('./strings.json'); const strings = require('./strings.json');
const isDev = process.env.isDev; const isDev = process.env.IS_DEV;
client.once('ready', () => { client.once('ready', () => {
fn.collections.slashCommands(client); fn.collections.slashCommands(client);
@ -33,9 +33,9 @@ client.once('ready', () => {
fn.download.strains(client); fn.download.strains(client);
fn.download.medicalAdvice(client); fn.download.medicalAdvice(client);
console.log('Ready!'); console.log('Ready!');
// client.channels.fetch(statusChannelId).then(channel => { client.channels.fetch(statusChannelId).then(channel => {
// channel.send(`${new Date().toISOString()} -- <@${process.env.ownerId}>\nStartup Sequence Complete`); channel.send(`${new Date().toISOString()} -- <@${process.env.OWNER_ID}>\nStartup Sequence Complete`);
// }); });
}); });
// slash-commands // slash-commands

View File

@ -1,6 +1,6 @@
{ {
"name": "nodbot", "name": "nodbot",
"version": "3.1.1", "version": "3.1.2",
"description": "Nods and Nod Accessories.", "description": "Nods and Nod Accessories.",
"main": "main.js", "main": "main.js",
"dependencies": { "dependencies": {
@ -14,7 +14,7 @@
"fuzzy-search": "^3.2.1", "fuzzy-search": "^3.2.1",
"mysql": "^2.18.1", "mysql": "^2.18.1",
"tenorjs": "1.0.10", "tenorjs": "1.0.10",
"tenorjs-v2": "^1.0.1" "tenorjs-v2": "^1.0.2"
}, },
"engines": { "engines": {
"node": "^20.x" "node": "^20.x"