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({
type: CommandType.Slash,
plugins: [],
description: 'look stuff up on google',
options: [{
name: 'query',
description: 'the query to search for',
type: ApplicationCommandOptionType.String,
required: true,
}],
description: 'Look stuff up on Google',
options: [
{
name: 'query',
description: 'The query to search for',
type: ApplicationCommandOptionType.String,
required: true,
}
],
execute: async (ctx) => {
const query = ctx.options.getString('query', true);
const url = `https://google.com/search?q=${encodeURIComponent(query)}`;