diff --git a/commands/join.js b/commands/join.js new file mode 100644 index 0000000..a151ee5 --- /dev/null +++ b/commands/join.js @@ -0,0 +1,23 @@ +const command = { + name: "join", + desc: "make the bot listen to a channel", + run: async (client, msg) => { + await client + .join(msg.senderUsername) + .then(() => + client.say( + msg.channelName, + `${msg.displayName}, joined ${msg.senderUsername} BroBalt` + ) + ) + .then(() => client.say(msg.senderUsername, "MrDestructoid")) + .catch(() => + client.say( + msg.channelName, + `${msg.displayName}, the bot is probably in your chat, but can't speak because of phone number etc verification` + ) + ); + }, +}; + +export default { command };