mirror of
https://github.com/chenasraf/venom.git
synced 2026-05-17 17:28:08 +00:00
docs: add help info
This commit is contained in:
@@ -25,7 +25,8 @@ export default command({
|
||||
`\`${DEFAULT_COMMAND_PREFIX}chat save\` - backs up the brain immediately`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}chat size\` - shows the current brain size`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}chat <anything else>\` - chat with Venom and immediately get a reply.`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}chat whitelist <add|remove> <guild|channel>\` - update whitelist for guild/channel.`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}chat whitelist <get|add|remove> <guild|channel>\` - get/update whitelist for ` +
|
||||
`guild/channel (see \`${DEFAULT_COMMAND_PREFIX}help whitelist\` for more information (admins only).`,
|
||||
`\`${CHAT_TRIGGERS[1]}hi!\` - You can also just prefix it with one of the chat prefixes to chat more naturally: \`${CHAT_TRIGGERS.join('`, `')}\`, `,
|
||||
],
|
||||
execute: async (message, args) => {
|
||||
|
||||
@@ -1,11 +1,22 @@
|
||||
import { command } from '@/core/commands'
|
||||
import { DEFAULT_COMMAND_PREFIX } from '@/env'
|
||||
import { manipulateWhitelist } from '@/lib/blacklist'
|
||||
|
||||
export default command({
|
||||
command: 'whitelist',
|
||||
aliases: ['wl'],
|
||||
description: 'Whitelist a channel or guild for commands.',
|
||||
examples: ['`!whitelist add channel`', '`!whitelist add guild`'],
|
||||
description: [
|
||||
'Whitelist a channel or guild for commands.',
|
||||
`Format is \`${DEFAULT_COMMAND_PREFIX}whitelist <get|add|remove> <channel|guild>\``,
|
||||
'If you want to whitelist a channel, you need to provide a guild as well.',
|
||||
'Whitelisting a channel will not whitelist the guild, and removing a guild from the whitelist will also remove ' +
|
||||
'the channel. Effectively, guilds can be turned off completely, while channels have to be selected to be included.',
|
||||
].join('\n'),
|
||||
examples: [
|
||||
`\`${DEFAULT_COMMAND_PREFIX}whitelist get channel\` - get status for channel`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}whitelist add channel\` - whitelist channel`,
|
||||
`\`${DEFAULT_COMMAND_PREFIX}whitelist remoce guild\` - remove guild from whitelist`,
|
||||
],
|
||||
global: true,
|
||||
adminOnly: true,
|
||||
async execute(message, args) {
|
||||
|
||||
Reference in New Issue
Block a user