Fix startup message
All checks were successful
NodBot PE Dockerization / build (push) Successful in 1m16s
All checks were successful
NodBot PE Dockerization / build (push) Successful in 1m16s
This commit is contained in:
parent
57f729de24
commit
f1459e9d91
@ -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
|
||||
|
10
main.js
10
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user