FridayNightFunkinBoyfriendBot/commands/ping.js

20 lines
454 B
JavaScript
Raw Normal View History

2024-02-20 11:58:22 -05:00
module.exports = {
name: 'ping',
execute (context) {
if (context.arguments.length !== 0) {
const argumentList = []
for (const argument of context.arguments) {
if (argumentList.length !== 0) argumentList.push(' ')
argumentList.push(argument)
}
context.source.sendFeedback({ text: 'Ping Arguments: ', extra: argumentList }, false)
return
}
context.source.sendFeedback('Pong!', false)
}
}