join command
This commit is contained in:
parent
86bf10b3d0
commit
8a513c89ef
|
@ -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 };
|
Loading…
Reference in New Issue