diff --git a/_deploy-global.js b/_deploy-global.js index cd7b8ce..9145657 100644 --- a/_deploy-global.js +++ b/_deploy-global.js @@ -4,7 +4,7 @@ dotenv.config(); const { REST } = require('@discordjs/rest'); const { Routes } = require('discord-api-types/v9'); -const clientId = process.env.clientId; +const clientId = process.env.BOTID; const token = process.env.TOKEN; const fs = require('fs'); @@ -18,7 +18,7 @@ for (const file of commandFiles) { } } -console.log(commands); +console.log(`Token: ...${token.slice(-5)} | Bot ID: ${clientId}`); const rest = new REST({ version: '9' }).setToken(token); diff --git a/slash-commands/save.js b/slash-commands/save.js new file mode 100644 index 0000000..93c17b2 --- /dev/null +++ b/slash-commands/save.js @@ -0,0 +1,99 @@ +const { SlashCommandBuilder } = require('@discordjs/builders'); +const fn = require('../functions.js'); +const strings = require('../strings.json'); + +module.exports = { + data: new SlashCommandBuilder() + .setName('save') + .setDescription('Save content to Nodbot\'s database.') + .addSubcommandGroup(sc => + sc.setName('gif') + .setDescription('Save a gif (or other embeddable link)') + .addSubcommand(sc => + sc.setName('search') + .setDescription('Search Tenor for gifs') + .addStringOption(o => + o.setName('query') + .setDescription('Search Query') + .setRequired(true) + ) + ) + .addSubcommand(sc => + sc.setName('enterurl') + .setDescription('Save a link to some embeddable media') + .addStringOption(o => + o.setName('url') + .setDescription('The link to the media') + .setRequired(true) + ) + ) + ) + .addSubcommand(sc => + sc.setName('joint') + .setDescription('Save a phrase to the .joint database') + .addStringOption(o => + o.setName('content') + .setDescription('What do you want to save?') + .setRequired(true) + ) + ) + .addSubcommand(sc => + sc.setName('md') + .setDescription('Save a phrase to the .md database') + .addStringOption(o => + o.setName('content') + .setDescription('What do you want to save?') + .setRequired(true) + ) + ) + .addSubcommand(sc => + sc.setName('pasta') + .setDescription('Save a copypasta to the database') + .addStringOption(o => + o.setName('name') + .setDescription('What is the name of the copypasta? (don\'t include .pasta)') + .setRequired(true) + ) + .addStringOption(o => + o.setName('content') + .setDescription('What\'s the copypasta?') + .setRequired(true) + ) + ) + .addSubcommand(sc => + sc.setName('strain') + .setDescription('Save a strain\'s information to the database') + .addStringOption(option => + option.setName('name') + .setDescription('Name of the Strain') + .setRequired(true)) + .addStringOption(option => + option.setName('type') + .setDescription('Indica/Sativa/Hybrid') + .setRequired(true) + .addChoices( + { name: "Indica", value: "Indica" }, + { name: "Hybrid", value: "Hybrid" }, + { name: "Sativa", value: "Sativa" } + )) + .addStringOption(option => + option.setName('effects') + .setDescription('The effects given by the strain') + .setRequired(false)) + .addStringOption(option => + option.setName('flavor') + .setDescription('Flavor notes') + .setRequired(false)) + .addStringOption(option => + option.setName('rating') + .setDescription('Number of stars') + .setRequired(false)) + .addStringOption(option => + option.setName('description') + .setDescription('Description of the strain') + .setRequired(false)), + ), + async execute(interaction) { + + }, +}; \ No newline at end of file