Skip to content

!welcome by Hess#145

Closed
BHess2653 wants to merge 10 commits intodevfrom
welcomeCmd_Hess
Closed

!welcome by Hess#145
BHess2653 wants to merge 10 commits intodevfrom
welcomeCmd_Hess

Conversation

@BHess2653
Copy link

!welcome command.

sends welcome message to new users and a message to the general chat.
use !welcome to resend the welcome message.

@brennondenny
Copy link
Contributor

brennondenny commented May 7, 2018

Everything works fine for me, maybe consider changing the welcome command to !tos or change it's description in the help menu to say it is sending the tos since that's the main reason a user would use that command

bot/client.js Outdated
client.on('guildMemberAdd', (member) => {
member.sendMessage(`${member.user.username}, Welcome to the Full Sail Armada! These are the terms of service...`);
// Send welcome message to members who join
member.sendMessage(`${member}, Welcome to the Full Sail Armada! These are the terms of service...`);
Copy link

@mattpezzente mattpezzente May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"sendMessage" is being deprecated, please change those methods to just "send" before continuing.

Copy link

@mattpezzente mattpezzente left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments on commit, some deprecation changes should be made.

Copy link
Contributor

@brennondenny brennondenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add in the default comments found across the controllers to your welcome.js file.

@@ -0,0 +1,24 @@
const BaseController = require('../baseController.js');
const Command = require('../baseCommand.js');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add in the default comments found across the controllers to your welcome.js file.

Copy link
Owner

@reactivepixel reactivepixel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good work incorporating the feedback from your peers in shaping this submission. Ideally, I would have like you to solve the duplicate code logic issue out of the gate, but all submissions seem to have missed this, and we will discuss this further on Wednesday. The idea there would be to invoke the controller you have built rather than manually sending a message in the guildadduser event. Either way, solid work!

bot/client.js Outdated
// Send message to specific channel on the server
const channel = member.guild.channels.find('name', 'general');
// If channel is not found do nothing
if (!channel) return;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a non-intuitive way to 'do nothing'.

bot/client.js Outdated
// Event listener for new members
client.on('guildMemberAdd', (member) => {
// Send welcome message to members who join
member.send(`${member}, Welcome to the Full Sail Armada! These are the terms of service...`);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate logic in your controller.

bot/client.js Outdated
// If channel is not found do nothing
if (!channel) return;
// Send message with members name
channel.send(`Welcome to the Full Sail Armada ${member}! for more information use !help`);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The announcement to the general channel should not have a !help cmd reminder. This should be in the welcome message if anywhere.

'!tos',
'!tos',
'Terms of Service',
'Resends terms of service message.',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good phrasing on your help message

@reactivepixel reactivepixel deleted the welcomeCmd_Hess branch August 21, 2019 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants