From 682d067f67def5ea05ec3151bebfea3101350ed7 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 29 Mar 2020 06:19:32 -0400 Subject: [PATCH] add role on account creation --- src/class/AccountUtil.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/class/AccountUtil.ts b/src/class/AccountUtil.ts index 87cba9a..339f48d 100644 --- a/src/class/AccountUtil.ts +++ b/src/class/AccountUtil.ts @@ -64,6 +64,7 @@ export default class AccountUtil { `, }); + this.client.guilds.get('446067825673633794').members.get(data.userID).addRole('546457886440685578'); const dmChannel = await this.client.getDMChannel(data.userID).catch(); dmChannel.createMessage('<:loc:607695848612167700> **Thank you for creating an account with us!** <:loc:607695848612167700>\n' + `Please log into your account by running \`ssh ${data.username}@cloud.libraryofcode.org\` in your terminal, then use the password \`${tempPass}\` to log in.\n`