1
0
Fork 0
master
Matthew 2022-03-01 14:59:56 -05:00
parent d62e8846a4
commit 436152ffef
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
4 changed files with 6 additions and 4 deletions

View File

@ -71,7 +71,7 @@ export default class CWG_SelfService extends Command {
.setTimestamp(new Date(message.createdTimestamp));
const completed = [
edit.edit(`***${this.client.stores.emojis.success} Your subdomain has been create, please check your DMs or email address for more information.`),
edit.edit(`***${this.client.stores.emojis.success} Your subdomain has been created, please check your DMs or email address for more information.`),
(this.client.channels.cache.get('580950455581147146') as TextChannel).send({ embeds: [embed] }),
this.client.users.fetch(account.userID).then((r) => r.send({ embeds: [embed] })),
this.client.util.transport.sendMail({
@ -113,7 +113,6 @@ export default class CWG_SelfService extends Command {
}
public domainTextValidation(domain: string) {
if (!this.urlRegex.test(domain)) return false;
if (/[^\w\s-]/.test(domain)) return false;
}

View File

@ -49,7 +49,7 @@ export default function checkStaffStatus(client: Client) {
embed.setTitle('Cloud Account | Tier Change');
embed.setColor('#0099ff');
embed.addField('User', `${acc.username} | <@${acc.userID}>`, true);
embed.addField('Moderator', client.user.toString(), true);
embed.addField('Technician', 'SYSTEM', true);
embed.addField('Old Tier -> New Tier', `${acc.tier} -> 3`, true);
embed.setFooter(client.user.username, client.user.avatarURL());
embed.setTimestamp();

View File

@ -4,7 +4,8 @@
import { MessageEmbed, TextChannel } from 'discord.js';
import { Client } from '../class';
import { Tiers } from '../models';
this.client.db.Moderation.updateMany({ reason: { $regex: 'resource limit' } }, { reason: { $concat: { ['$reason', "DN/C"] } } })
this.client.db.Moderation.updateOne({ reason: { $regex: 'resource limit'}}, [{ $set: { reason: { $concat: [ "$reason", "DN/C" ] } } }])
const channelID = '691824484230889546';
export default function memory(client: Client) {

View File

@ -11,6 +11,7 @@ export interface DomainInterface extends Document {
key: string
},
enabled: true
created: Date,
}
const Domain = new Schema<DomainInterface>({
@ -19,6 +20,7 @@ const Domain = new Schema<DomainInterface>({
port: Number,
x509: { cert: String, key: String },
enabled: Boolean,
created: Date,
});
export default model<DomainInterface>('Domain', Domain);