fixes
parent
d62e8846a4
commit
436152ffef
|
@ -71,7 +71,7 @@ export default class CWG_SelfService extends Command {
|
||||||
.setTimestamp(new Date(message.createdTimestamp));
|
.setTimestamp(new Date(message.createdTimestamp));
|
||||||
|
|
||||||
const completed = [
|
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.channels.cache.get('580950455581147146') as TextChannel).send({ embeds: [embed] }),
|
||||||
this.client.users.fetch(account.userID).then((r) => r.send({ embeds: [embed] })),
|
this.client.users.fetch(account.userID).then((r) => r.send({ embeds: [embed] })),
|
||||||
this.client.util.transport.sendMail({
|
this.client.util.transport.sendMail({
|
||||||
|
@ -113,7 +113,6 @@ export default class CWG_SelfService extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
public domainTextValidation(domain: string) {
|
public domainTextValidation(domain: string) {
|
||||||
if (!this.urlRegex.test(domain)) return false;
|
|
||||||
if (/[^\w\s-]/.test(domain)) return false;
|
if (/[^\w\s-]/.test(domain)) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ export default function checkStaffStatus(client: Client) {
|
||||||
embed.setTitle('Cloud Account | Tier Change');
|
embed.setTitle('Cloud Account | Tier Change');
|
||||||
embed.setColor('#0099ff');
|
embed.setColor('#0099ff');
|
||||||
embed.addField('User', `${acc.username} | <@${acc.userID}>`, true);
|
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.addField('Old Tier -> New Tier', `${acc.tier} -> 3`, true);
|
||||||
embed.setFooter(client.user.username, client.user.avatarURL());
|
embed.setFooter(client.user.username, client.user.avatarURL());
|
||||||
embed.setTimestamp();
|
embed.setTimestamp();
|
||||||
|
|
|
@ -4,7 +4,8 @@
|
||||||
import { MessageEmbed, TextChannel } from 'discord.js';
|
import { MessageEmbed, TextChannel } from 'discord.js';
|
||||||
import { Client } from '../class';
|
import { Client } from '../class';
|
||||||
import { Tiers } from '../models';
|
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';
|
const channelID = '691824484230889546';
|
||||||
|
|
||||||
export default function memory(client: Client) {
|
export default function memory(client: Client) {
|
||||||
|
|
|
@ -11,6 +11,7 @@ export interface DomainInterface extends Document {
|
||||||
key: string
|
key: string
|
||||||
},
|
},
|
||||||
enabled: true
|
enabled: true
|
||||||
|
created: Date,
|
||||||
}
|
}
|
||||||
|
|
||||||
const Domain = new Schema<DomainInterface>({
|
const Domain = new Schema<DomainInterface>({
|
||||||
|
@ -19,6 +20,7 @@ const Domain = new Schema<DomainInterface>({
|
||||||
port: Number,
|
port: Number,
|
||||||
x509: { cert: String, key: String },
|
x509: { cert: String, key: String },
|
||||||
enabled: Boolean,
|
enabled: Boolean,
|
||||||
|
created: Date,
|
||||||
});
|
});
|
||||||
|
|
||||||
export default model<DomainInterface>('Domain', Domain);
|
export default model<DomainInterface>('Domain', Domain);
|
||||||
|
|
Loading…
Reference in New Issue