mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 15:47:57 -05:00
22 lines
965 B
JavaScript
22 lines
965 B
JavaScript
|
|
module.exports = {
|
|
name: 'clearchat',
|
|
alias: ['cc'],
|
|
description: 'Clears the chat',
|
|
usage: '[player]',
|
|
trusted: 0,
|
|
execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) {
|
|
if (args[0]) {
|
|
bot.tellraw(args.join(' '), [{ text: '\n'.repeat(100), color: 'white' }, { text: `Your chat has been cleared by ${username}.`, color: 'dark_green' }])
|
|
} else {
|
|
bot.tellraw('@a', [{ text: '\n'.repeat(100), color: 'white' }, { text: 'The chat has been cleared.', color: 'dark_green' }])
|
|
}
|
|
},
|
|
discordExecute (bot, username, sender, prefix, args, channeldc, message) {
|
|
if (args[0]) {
|
|
bot.tellraw(args.join(' '), [{ text: '\n'.repeat(100), color: 'white' }, { text: `Your chat has been cleared by ${username} (on Discord).`, color: 'dark_green' }])
|
|
} else {
|
|
bot.tellraw('@a', [{ text: '\n'.repeat(100), color: 'white' }, { text: 'The chat has been cleared.', color: 'dark_green' }])
|
|
}
|
|
}
|
|
}
|