forked from keinBot/cuffeo
bugfixes
- use has() instead of includes() on Map.. stupid - account has to be false if no account is provided + version bump
This commit is contained in:
@@ -3,7 +3,7 @@ export default bot => {
|
||||
const user = bot.parsePrefix(msg.prefix);
|
||||
const channel = msg.params[1];
|
||||
|
||||
if(!bot.server.channel.includes(channel)) {
|
||||
if(!bot.server.channel.has(channel)) {
|
||||
bot.join(channel);
|
||||
setTimeout(() => {
|
||||
bot.send(`PRIVMSG ${channel} :Hi. Wurde von ${user.nick} eingeladen.`);
|
||||
|
||||
Reference in New Issue
Block a user