-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Welcome message? #51
Comments
@Einarin had something like this setup. Got extremely annoying very fast.
|
+1, I tried it on my server but it's really annoying. When you have 200+ people on your server the bot starts spamming like hell. |
@mogokcp It is super annoying so I don't recommend it, but if you want to try it is easy to add. You'd modify the presence function in discord_bot.js line 733. Something like this: bot.on("presence", function(user,status,gameId) {
if(status === "online"){
bot.sendMessage(bot.channels.get("name","your_channel_name"),"Welcome "+user.name);
}
try{
if(status != 'offline'){
if(messagebox.hasOwnProperty(user.id)){
console.log("found message for " + user.id);
var message = messagebox[user.id];
var channel = bot.channels.get("id",message.channel);
delete messagebox[user.id];
updateMessagebox();
bot.sendMessage(channel,message.content);
}
}
}catch(e){}
}); |
Maybe we should add this as an off by default feature? |
How i can setup a welcome msg?
like
user join:
bot: Welcome [user]
left
bot: Goodbye [user]
The text was updated successfully, but these errors were encountered: