This commit is contained in:
2025-06-28 15:20:39 +02:00
parent 83387aaffc
commit 202fe46c1e

View File

@@ -12,13 +12,15 @@ import { ApplicationCommandOptionType } from 'discord.js';
export default commandModule({ export default commandModule({
type: CommandType.Slash, type: CommandType.Slash,
plugins: [], plugins: [],
description: 'look stuff up on google', description: 'Look stuff up on Google',
options: [{ options: [
name: 'query', {
description: 'the query to search for', name: 'query',
type: ApplicationCommandOptionType.String, description: 'The query to search for',
required: true, type: ApplicationCommandOptionType.String,
}], required: true,
}
],
execute: async (ctx) => { execute: async (ctx) => {
const query = ctx.options.getString('query', true); const query = ctx.options.getString('query', true);
const url = `https://google.com/search?q=${encodeURIComponent(query)}`; const url = `https://google.com/search?q=${encodeURIComponent(query)}`;