help text fixes for systemd linger cmd
parent
2991ffb455
commit
4be5279c8f
|
@ -14,7 +14,7 @@ export default class SystemdD_Linger extends Command {
|
||||||
|
|
||||||
public async run(message: Message, args: string[]) {
|
public async run(message: Message, args: string[]) {
|
||||||
try {
|
try {
|
||||||
if (!args[0]) return this.client.commands.get('help').run(message, [this.name]);
|
if (!args[0]) return this.client.commands.get('help').run(message, ['systemd', this.name]);
|
||||||
const account = await this.client.db.Account.findOne({ userID: message.author.id }).lean().exec();
|
const account = await this.client.db.Account.findOne({ userID: message.author.id }).lean().exec();
|
||||||
if (!account) return this.error(message.channel, 'You do not have a Cloud Services account.');
|
if (!account) return this.error(message.channel, 'You do not have a Cloud Services account.');
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
|
|
Loading…
Reference in New Issue