Commit 75eff071 authored by Caleb Connolly's avatar Caleb Connolly 💬 Committed by Imran Hussain
Browse files

[newMembers] Update new member greeting.

The greeting messages can be a little odd to people - especially those that haven't read HHGTTG.
parent b8f799e3
/* 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) => === settings[].default_channel)
.send('<@' + + '> ' + randomGreeting);
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