Commit 6d1cd12f authored by Imran Hussain's avatar Imran Hussain

Merge branch 'patch-1' into 'master'

[newMembers] Update new member greeting.

See merge request !2
parents b8f799e3 75eff071
Pipeline #688 failed with stages
in 9 minutes and 43 seconds
/* global process */
const settings = JSON.parse(process.env.SOCS);
module.exports = (client, member) => {
const greetings = [
'Sigh, welcome to the server I guess',
'Oh.... Hello',
'I think you ought to know I\'m feeling very depressed but that\'s how I was made',
'I am at a rough estimate thirty billion times more intelligent than you. But here I am being used to greet people',
'Welcome, pardon me for breathing',
'Just so you know, I hate oceans.',
'You think you’ve got problems. What are you supposed to do if you are a manically depressed robot?',
];
const randomGreeting = greetings[Math.floor(Math.random()*greetings.length)];
const greeting = `Hey ${member}, welcome to the server`;
const guild = member.guild;
guild.channels.find((channel) =>
channel.name === settings[guild.name.toLowerCase()].default_channel)
.send('<@' + member.id + '> ' + randomGreeting);
.send(greeting);
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment