mirror of
https://github.com/nx-bat/pet-the-pond.git
synced 2026-09-22 10:29:11 -04:00
(commands): /init now preps the database.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { Command, CommandBuilder, CommandClient, CommandInteraction, Constants, SlashCommand } from 'athena-prime';
|
import { Command, CommandBuilder, CommandClient, CommandInteraction, Constants, SlashCommand } from 'athena-prime';
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
|
import { database } from '../../utils';
|
||||||
|
|
||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
@@ -17,6 +18,8 @@ class InitCommand extends Command<CommandClient> {
|
|||||||
];
|
];
|
||||||
|
|
||||||
async #createInformationMessage(context: CommandClient<any, any>, interaction: CommandInteraction) {
|
async #createInformationMessage(context: CommandClient<any, any>, interaction: CommandInteraction) {
|
||||||
|
await database.init();
|
||||||
|
|
||||||
await context.createMessage(interaction.channel.id, {
|
await context.createMessage(interaction.channel.id, {
|
||||||
embed: {
|
embed: {
|
||||||
color: 0xe77ed1,
|
color: 0xe77ed1,
|
||||||
|
|||||||
Reference in New Issue
Block a user