diff --git a/src/class/AccountUtil.ts b/src/class/AccountUtil.ts index 339f48d..43816e8 100644 --- a/src/class/AccountUtil.ts +++ b/src/class/AccountUtil.ts @@ -55,7 +55,7 @@ export default class AccountUtil {
  • #cloud-announcements - Announcements regarding the cloud machine will be here. These include planned maintenance, updates to preinstalled services etc.
  • #cloud-info - Important information you will need to, or should, know to a certain extent. These include our infractions system and Tier limits
  • #cloud-support - A support channel specifically for the cloud machine, you can use this to ask how to renew your certificates, for example
  • -
  • Library of Code Support Desk - Our Support desk, you can contact Staff here.
  • +
  • Library of Code Support Desk - Our Support desk, you can contact Staff here.
  • Want to support us?

    You can support us on Patreon! Head to our Patreon page and feel free to donate as much or as little as you want!
    Donating $5 or more will grant you Tier 3, which means we will manage your account at your request, longer certificates, increased Tier limits as well as some roles in the server!

    diff --git a/src/class/Util.ts b/src/class/Util.ts index fb093d2..f834f51 100644 --- a/src/class/Util.ts +++ b/src/class/Util.ts @@ -229,11 +229,11 @@ export default class Util { let archType: string; switch (type) { default: archType = 'Staff'; embedTitle = 'Cloud Account | Generic'; color = '0892e1'; break; - case 0: archType = 'Administrator'; embedTitle = 'Cloud Account | Create'; color = '00ff00'; break; - case 1: archType = 'Staff'; embedTitle = 'Account Warning | Warn'; color = 'ffff00'; break; - case 2: archType = 'Moderator'; embedTitle = 'Account Infraction | Lock'; color = 'ff6600'; break; - case 3: archType = 'Moderator'; embedTitle = 'Account Reclaim | Unlock'; color = '0099ff'; break; - case 4: archType = 'Administrator'; embedTitle = 'Cloud Account | Delete'; color = 'ff0000'; break; + case 0: archType = 'Technician'; embedTitle = 'Cloud Account | Create'; color = '00ff00'; break; + case 1: archType = 'Technician'; embedTitle = 'Account Warning | Warn'; color = 'ffff00'; break; + case 2: archType = 'Technician'; embedTitle = 'Account Infraction | Lock'; color = 'ff6600'; break; + case 3: archType = 'Technician'; embedTitle = 'Account Reclaim | Unlock'; color = '0099ff'; break; + case 4: archType = 'Director'; embedTitle = 'Cloud Account | Delete'; color = 'ff0000'; break; } const embed = new RichEmbed() .setTitle(embedTitle) diff --git a/src/commands/createaccount.ts b/src/commands/createaccount.ts index 1599ebf..d9047b0 100644 --- a/src/commands/createaccount.ts +++ b/src/commands/createaccount.ts @@ -37,6 +37,7 @@ export default class CreateAccount extends Command { const confirmation = await message.channel.createMessage(`${this.client.stores.emojis.loading} ***Creating account...***`); const data = await this.client.util.accounts.createAccount({ userID: args[0], username: args[2], emailAddress: args[1] }, message.author.id); + message.delete(); return confirmation.edit(`${this.client.stores.emojis.success} ***Account successfully created***\n**Username:** \`${args[2]}\`\n**Temporary Password:** \`${data.tempPass}\``); } catch (error) { diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index 694fb79..28a4431 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -41,6 +41,7 @@ export default class DeleteAccount extends Command { if (reason) logInput.reason = reason; await this.client.util.createModerationLog(args[0], message.member, 4, reason); await this.client.util.deleteAccount(username); + message.delete(); this.client.util.transport.sendMail({ to: account.emailAddress, @@ -48,15 +49,15 @@ export default class DeleteAccount extends Command { subject: 'Your account has been deleted', html: `

    Library of Code | Cloud Services

    -

    Your Cloud Account has been deleted by our Engineers. If your account was deleted due to infractions, this will not be appealable. We're sorry to see you go.

    +

    Your Cloud Account has been deleted by a Director. If your account was deleted due to infractions, this will not be appealable. We're sorry to see you go.

    Reason: ${reason}

    -

    Engineer: ${message.author.username}

    +

    Director: ${message.author.username}

    Library of Code sp-us | Support Team `, }); - return deleting.edit(`${this.client.stores.emojis.success} ***Account ${username} has been deleted by Engineer ${message.author.username}#${message.author.discriminator}***`); + return deleting.edit(`${this.client.stores.emojis.success} ***Account ${username} has been deleted by Director ${message.author.username}#${message.author.discriminator}***`); } catch (error) { return this.client.util.handleError(error, message, this); } diff --git a/src/commands/lock.ts b/src/commands/lock.ts index bf88d6b..17e3740 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -31,7 +31,7 @@ export default class Lock extends Command { const reason = momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' '); await this.client.util.createModerationLog(account.userID, message.member, 2, reason, momentMilliseconds); - edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been locked by Moderator ${message.author.username}#${message.author.discriminator}.***`); + edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been locked by Technician ${message.author.username}#${message.author.discriminator}.***`); message.delete(); this.client.util.transport.sendMail({ @@ -42,7 +42,7 @@ export default class Lock extends Command {

    Library of Code | Cloud Services

    Your Cloud Account has been locked until ${momentMilliseconds ? moment(expiry).calendar() : 'indefinitely'} under the EULA.

    Reason: ${momentMilliseconds ? args.slice(2).join(' ') : args.slice(1).join(' ')}

    -

    Supervisor: ${message.author.username}

    +

    Technician: ${message.author.username}

    Expiration: ${momentMilliseconds ? moment(expiry).format('dddd, MMMM Do YYYY, h:mm:ss A') : 'N/A'}

    Library of Code sp-us | Support Team diff --git a/src/commands/notify.ts b/src/commands/notify.ts index 8fc3583..fcb57df 100644 --- a/src/commands/notify.ts +++ b/src/commands/notify.ts @@ -36,7 +36,7 @@ export default class Notify extends Command { html: `

    Library of Code sp-us | Cloud Services

    ${args.slice(1).join(' ')}

    -

    Moderator: ${message.author.username}

    +

    Technician: ${message.author.username}

    Library of Code sp-us | Support Team `, diff --git a/src/commands/sysinfo.ts b/src/commands/sysinfo.ts index 8925cae..6dc5ce9 100644 --- a/src/commands/sysinfo.ts +++ b/src/commands/sysinfo.ts @@ -26,8 +26,8 @@ export default class SysInfo extends Command { embed.addField('CPU', `${os.cpus()[0].model} ${os.cpus()[0].speed / 1000}GHz | ${os.cpus().length} Cores | ${os.arch()}`, true); embed.addField('Load Average (last 15 minutes)', os.loadavg()[2].toFixed(3), true); embed.addField('Memory/RAM', `${usedMemory} / ${dataConversion(totalmem())}`, true); - embed.addField('Network Interfaces (IPv4)', os.networkInterfaces().eth0.filter((r) => r.family === 'IPv4')[0].address, true); - embed.addField('Network Interfaces (IPv6)', os.networkInterfaces().eth0.filter((r) => r.family === 'IPv6')[0].address.replace(/:/gi, '\:'), true); // eslint-disable-line + embed.addField('Network Interfaces (IPv4)', os.networkInterfaces().enp0s3.filter((r) => r.family === 'IPv4')[0].address, true); + embed.addField('Network Interfaces (IPv6)', os.networkInterfaces().enp0s3.filter((r) => r.family === 'IPv6')[0].address.replace(/:/gi, '\:'), true); // eslint-disable-line embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); message.channel.createMessage({ embed }); diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 408e3e0..fca5352 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -11,7 +11,7 @@ export default class Unban extends Command { this.aliases = ['unbanip']; this.usage = `${this.client.config.prefix}unban [service] [ip]`; this.permissions = { roles: ['662163685439045632', '701454780828221450'] }; - this.enabled = true; + this.enabled = false; } public async run(message: Message, args: string[]) { diff --git a/src/commands/unlock.ts b/src/commands/unlock.ts index 81e757a..66cb00f 100644 --- a/src/commands/unlock.ts +++ b/src/commands/unlock.ts @@ -23,7 +23,8 @@ export default class Unlock extends Command { await account.updateOne({ locked: false }); await this.client.util.createModerationLog(account.userID, message.member, 3, args.slice(1).join(' ')); - edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been unlocked by Moderator ${message.author.username}#${message.author.discriminator}.***`); + message.delete(); + edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been unlocked by Technician ${message.author.username}#${message.author.discriminator}.***`); } catch (error) { await this.client.util.handleError(error, message, this); } diff --git a/src/commands/warn.ts b/src/commands/warn.ts index 218307d..1c42332 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -21,7 +21,7 @@ export default class Warn extends Command { if (account.root) return edit.edit(`***${this.client.stores.emojis.error} Permission denied.***`); await this.client.util.createModerationLog(account.userID, message.member, 1, args.slice(1).join(' ')); message.delete(); - edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been warned by Moderator ${message.author.username}#${message.author.discriminator}.***`); + edit.edit(`***${this.client.stores.emojis.success} Account ${account.username} has been warned by Technician ${message.author.username}#${message.author.discriminator}.***`); return this.client.util.transport.sendMail({ to: account.emailAddress, from: 'Library of Code sp-us | Cloud Services ', @@ -30,7 +30,7 @@ export default class Warn extends Command {

    Library of Code sp-us | Cloud Services

    Your account has received an official warning from a Moderator. Please get the underlying issue resolved to avoid possible moderative action.

    Reason: ${args.slice(1).join(' ') ? args.slice(1).join(' ') : 'Not Specified'}

    -

    Moderator: ${message.author.username}

    +

    Technician: ${message.author.username}

    Library of Code sp-us | Support Team `,