Skip to content
This repository has been archived by the owner on Jan 13, 2019. It is now read-only.

Commit

Permalink
💯
Browse files Browse the repository at this point in the history
  • Loading branch information
Dougley committed Jul 21, 2016
1 parent 0e060d2 commit e0631cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DougBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ bot.Dispatcher.on(Event.GUILD_MEMBER_ADD, function (s) {
} else if (r === 'private') {
datacontrol.customize.reply(s, 'welcome').then((x) => {
if (x === 'default') {
s.member.openDM.then((g) => g.sendMessage(`Welcome to ${s.guild.name}! Please enjoy your stay!`))
s.member.openDM().then((g) => g.sendMessage(`Welcome to ${s.guild.name}! Please enjoy your stay!`))
} else {
s.member.openDM.then((g) => g.sendMessage(x.replace(/%user/g, s.member.username).replace(/%server/g, s.guild.name)))
s.member.openDM().then((g) => g.sendMessage(x.replace(/%user/g, s.member.username).replace(/%server/g, s.guild.name)))
}
}).catch((e) => {
Logger.error(e)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "WildBeast",
"version": "3.1.0",
"version": "3.1.1",
"description": "A Discord Bot",
"main": "DougBot.js",
"maintainers": [
Expand Down

0 comments on commit e0631cc

Please sign in to comment.