Initial Emmelia merge

This commit is contained in:
Logan Cusano
2023-05-06 14:56:51 -04:00
parent 6e8af5dbcc
commit f3a4f25f85
44 changed files with 5530 additions and 1115 deletions

View File

@@ -0,0 +1,29 @@
var libCore = require("../libCore.js");
const { SlashCommandBuilder } = require('discord.js');
const { DebugBuilder } = require("../utilities/debugBuilder");
const log = new DebugBuilder("server", "sources");
module.exports = {
data: new SlashCommandBuilder()
.setName('sources')
.setDescription('Reply with all of the available sources'),
example: "sources",
isPrivileged: false,
requiresTokens: false,
async execute(interaction) {
try{
var sourceArray = libCore.getSources();
var sourceString = "";
sourceArray.forEach(source => {
sourceString +=`[${source.title}](${source.link}) \n`;
});
await interaction.reply(sourceString);
}catch(err){
log.ERROR(err)
//await interaction.reply(err.toString());
}
}
};