Skip to content
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

Open
Botance opened this issue Dec 24, 2017 · 7 comments
Open

Making A Welcome Message and/or a Log in Message #123

Botance opened this issue Dec 24, 2017 · 7 comments

Comments

@Botance
Copy link

Botance commented Dec 24, 2017

I think it would be an overall cool featue for every1

@F9Alejandro
Copy link
Collaborator

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.

@valkyrienyanko
Copy link

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.

@Einarin
Copy link
Collaborator

Einarin commented Jul 18, 2020

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.

@chalda
Copy link
Owner

chalda commented Nov 9, 2020

@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

@F9Alejandro
Copy link
Collaborator

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.

@AnadeOre
Copy link

Mongo DB (mongoose) is a great option for database and the connection with discord js is pretty straightforward.

@F9Alejandro
Copy link
Collaborator

F9Alejandro commented Jul 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants