diff --git a/src/commands/additem.ts b/src/commands/additem.ts index a23f12f..1760b68 100644 --- a/src/commands/additem.ts +++ b/src/commands/additem.ts @@ -17,12 +17,12 @@ export default class AddItem extends Command { const embed = new RichEmbed(); embed.setTitle('Whois Data Codes'); embed.addField('Languages', '**Assembly Language:** lang-asm\n**C/C++:** lang-cfam\n**C#:** lang-csharp\n**Go:** lang-go\n**Java:** lang-java\n**JavaScript:** lang-js\n**Kotlin:** lang-kt\n**Python:** lang-py\n**Ruby:** lang-rb\n**Rust:** lang-rs\n**Swift:** lang-swift\n**TypeScript:** lang-ts'); - embed.addField('Operating Systems', '**Arch:** os-arch\n**Debian:** os-deb\n**Fedora:** os-fedora\n**macOS:** os-mdarwin\n**RedHat:** os-redhat\n**Ubuntu:** os-ubuntu\n**Windows:** os-win'); + embed.addField('Operating Systems', '**Arch:** os-arch\n**Debian:** os-deb\n**Fedora:** os-fedora\n**macOS:** os-mdarwin\n**Manjaro:** os-manjaro\n**RedHat:** os-redhat\n**Ubuntu:** os-ubuntu\n**Windows:** os-win'); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); return message.channel.createMessage({ embed }); } - if (args[0].split('-')[0] === 'os' && ['arch', 'deb', 'fedora', 'mdarwin', 'redhat', 'ubuntu', 'win'].includes(args[0].split('-')[1])) { + if (args[0].split('-')[0] === 'os' && ['arch', 'deb', 'fedora', 'manjaro', 'mdarwin', 'redhat', 'ubuntu', 'win'].includes(args[0].split('-')[1])) { const account = await this.client.db.member.findOne({ userID: message.member.id }); if (!account) { // eslint-disable-next-line new-cap diff --git a/src/commands/delitem.ts b/src/commands/delitem.ts index 920922c..9ab5e53 100644 --- a/src/commands/delitem.ts +++ b/src/commands/delitem.ts @@ -17,12 +17,12 @@ export default class DelItem extends Command { const embed = new RichEmbed(); embed.setTitle('Whois Data Codes'); embed.addField('Languages', '**Assembly Language:** lang-asm\n**C/C++:** lang-cfam\n**C#:** lang-csharp\n**Go:** lang-go\n**Java:** lang-java\n**JavaScript:** lang-js\n**Kotlin:** lang-kt\n**Python:** lang-py\n**Ruby:** lang-rb\n**Rust:** lang-rs\n**Swift:** lang-swift\n**TypeScript:** lang-ts'); - embed.addField('Operating Systems', '**Arch:** os-arch\n**Debian:** os-deb\n**Fedora:** os-fedora\n**macOS:** os-mdarwin\n**RedHat:** os-redhat\n**Ubuntu:** os-ubuntu\n**Windows:** os-win'); + embed.addField('Operating Systems', '**Arch:** os-arch\n**Debian:** os-deb\n**Fedora:** os-fedora\n**macOS:** os-mdarwin\n**Manjaro:** os-manjaro\n**RedHat:** os-redhat\n**Ubuntu:** os-ubuntu\n**Windows:** os-win'); embed.setFooter(this.client.user.username, this.client.user.avatarURL); embed.setTimestamp(); return message.channel.createMessage({ embed }); } - if (args[0].split('-')[0] === 'os' && ['arch', 'deb', 'fedora', 'mdarwin', 'redhat', 'ubuntu', 'win'].includes(args[0].split('-')[1])) { + if (args[0].split('-')[0] === 'os' && ['arch', 'deb', 'fedora', 'manjaro', 'mdarwin', 'redhat', 'ubuntu', 'win'].includes(args[0].split('-')[1])) { const account = await this.client.db.member.findOne({ userID: message.member.id }); if (!account || !account?.additional.operatingSystems || account?.additional.operatingSystems.length < 1) { return message.channel.createMessage(`***${this.client.util.emojis.ERROR} You don't have any operating systems to remove.***`); diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 96420e0..0746f0b 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -155,6 +155,9 @@ export default class Whois extends Command { case 'fedora': operatingSystems.push('<:fedora:707695073151680543> Fedora'); break; + case 'manjaro': + operatingSystems.push('<:manjaro:707701473680556062> Manjaro'); + break; case 'mdarwin': operatingSystems.push('<:mac:707695427754917919> macOS'); break; diff --git a/src/models/Member.ts b/src/models/Member.ts index 63a0a62..ce57df3 100644 --- a/src/models/Member.ts +++ b/src/models/Member.ts @@ -4,7 +4,7 @@ export interface MemberInterface extends Document { userID: string additional: { langs: ['js', 'py', 'rb', 'ts', 'rs', 'go', 'cfam', 'csharp', 'swift', 'java', 'kt', 'asm'], - operatingSystems: ['arch', 'deb', 'fedora', 'mdarwin', 'redhat', 'ubuntu', 'win'], + operatingSystems: ['arch', 'deb', 'fedora', 'manjaro', 'mdarwin', 'redhat', 'ubuntu', 'win'], }, }