spaceCommand
Triggers like a regular command but ignores prefixes (like prefixless commands). Can also serve as a way to reply to all messages.
Add The Event: Not needed, if the 'onMessage' is already added.
Type: spaceCommand
Base Code
bot.command({
type: "spaceCommand", // spaceCommand type.
name: "name", // The trigger
code: `code` // The code to run when the command is triggered.
})
Example
bot.command({
type: "spaceCommand",
name: "hi", // You can remove this field, for the bot to respond to all messages.
code: `Hello!`
})
Last updated
Was this helpful?