Beginning of something new?
This commit is contained in:
parent
4eb793fadd
commit
01e6c2b546
@ -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);
|
||||
|
||||
|
99
slash-commands/save.js
Normal file
99
slash-commands/save.js
Normal file
@ -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) {
|
||||
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue
Block a user