-
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
Making A Welcome Message and/or a Log in Message #123
Comments
Discord already handles when a new user joins your server for the first time with a message in that server. If you mean for the bot to send a DM to that user, you will have to have a fair bit of handling in case the user has DM off, or friends only (bot can't have friends it is not a person) will cause the bot to crash or throw an exception error. |
Embed welcome messages can be pretty if done right. Reacting with a emote could be a nice final touch too. And maybe delete it after x seconds? Up to you. |
This would be a pretty straightforward thing to add if someone wants to do it. It basically involves adding bot.on("guildMemberAdd", (member) = > {
//member is the new user to respond to. Send them a message in a channel or DM.
}); The more complicated work is adding a way to configure what to say since that would probably want to be server specific. |
@Einarin prolly need a sqllite DB as @F9Alejandro suggested in discord. i think its a decent idea. since server admins often might not have direct access to the server we would may be need some admin commands that can be executed remotely and written to the sql db |
and it would be for that server specifically unless there is a feature addition then it might need to be added to all current servers or check if it exists if said server wants to enable it. |
Mongo DB (mongoose) is a great option for database and the connection with discord js is pretty straightforward. |
Almost any type of db would work for this. The question is on if we can make it easy for others to make tables in for their need/use case. Something like what python has for SQLALCHEMY, it is fairly useful and gives visual on what you want the structure to look like and they are in a way objects that can be populated as well to be sent over to the db. All the would be needed is the base db connection then from their it would be simple for others to include or expand off of it similar to the plugin/modules. Unfortunately I don't really have have time anymore to be keeping up with innovate ideas and functions. Most I can do is look over code snippets and see if they are logically and constructively sound. |
I think it would be an overall cool featue for every1
The text was updated successfully, but these errors were encountered: