diff options
| author | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-07-23 23:24:17 -0700 |
| commit | bb511abc03bb66848947e37a999502b813c77269 (patch) | |
| tree | 612c010fc8317e1cdf11471a18aad0270819d33e /src/commands/bot | |
| parent | fix: if clear amount equal or over 100, round down to 99 (diff) | |
| download | dep-core-bb511abc03bb66848947e37a999502b813c77269.tar.xz dep-core-bb511abc03bb66848947e37a999502b813c77269.zip | |
goodbye old uwufier :cry:
Diffstat (limited to 'src/commands/bot')
28 files changed, 0 insertions, 933 deletions
diff --git a/src/commands/bot/api.ts b/src/commands/bot/api.ts deleted file mode 100644 index 98486a9..0000000 --- a/src/commands/bot/api.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class APIBot extends Command { - constructor(client) { - super(client, { - name: 'api', - group: 'bot', - memberName: 'api', - description: 'Gives you uwufier\'s API link and documentation.', - examples: ['uwu!api'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - //.setDescription('Here\'s a link to my [API](http://uwufier.kyzer.co/api/v1/). (To use, copy the given URL, then append the API endpoints looking to get to it.) As for documentation, it is currently under heavy re-writing. As soon as the documentation goes live, you can read through it on the [official uwufier website](https://kyzer.co/discord/bots/uwufier/)! ' + emoji.random()) - .setDescription(`Uwifier's API is currently down. ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/clientid.ts b/src/commands/bot/clientid.ts deleted file mode 100644 index 1b084e4..0000000 --- a/src/commands/bot/clientid.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class ClientIDBot extends Command { - constructor(client) { - super(client, { - name: 'clientid', - aliases: ['cid'], - group: 'bot', - memberName: 'clientid', - description: 'Tells you uwufier\'s client ID.', - examples: ['uwu!clientid', 'uwu!cid'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - msg.reply(`**uwufier\'s** client ID is **699473263998271489**. ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/bot/commandsamount.ts b/src/commands/bot/commandsamount.ts deleted file mode 100644 index 49b743e..0000000 --- a/src/commands/bot/commandsamount.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class CommandsAmountBot extends Command { - constructor(client) { - super(client, { - name: 'commandsamount', - aliases: [ - 'commands-amount', - 'cmdsamount', - 'cmds-amount' - ], - group: 'bot', - memberName: 'commandsamount', - description: 'Tells you the amount of available commands uwufier has.', - examples: ['uwu!cmdsamount'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - } - }); - } - async run(msg: CommandoMessage) { - msg.reply(`${this.client.user?.tag} has ${this.client.registry.commands.size} available commands! ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/bot/email.ts b/src/commands/bot/email.ts deleted file mode 100644 index f326c22..0000000 --- a/src/commands/bot/email.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class TwitchBot extends Command { - constructor(client) { - super(client, { - name: 'email', - aliases: ['mail', 'contact', 'gmail'], - group: 'bot', - memberName: 'email', - description: 'Gives you a reference to uwufier\'s authors\' (Sin) best method of contact.', - examples: ['uwu!email'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`To contact <@217348698294714370>, please send a email to \`[email protected]\`. Alternatively, you can either send a DM to <@217348698294714370> on Discord or on [Twitter](https://twitter.com/9inny). (All spam and unsolicited inquiries will be dealt with accordingly). ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/generatecommands.ts b/src/commands/bot/generatecommands.ts deleted file mode 100644 index e1079f1..0000000 --- a/src/commands/bot/generatecommands.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; - -module.exports = class GenerateCommandsBot extends Command { - constructor(client) { - super(client, { - name: 'generatecommands', - aliases: [ - 'generate-commands', - 'generatecmds', - 'generate-cmds', - 'gencommands', - 'gen-commands', - 'gencmds', - 'gen-cmds' - ], - group: 'bot', - memberName: 'generatecommands', - description: 'Generates a .txt file with all of the available commands.', - examples: ['uwu!gencmds'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true, - guarded: true - }); - } - async run(msg: CommandoMessage) { - const list = this.client.registry.groups - .map(g => { - const commands = g.commands.filter(c => !c.hidden) - return `\n### ${g.name}\n\n${commands.map(c => { - const extra = `${c.ownerOnly ? ' (Owner-Only)' : ''}${c.nsfw ? ' (NSFW)' : ''}` - return `* ** ${c.name}:** ${c.description}${extra}` - }).join('\n')}` - }) - const text = `Total: ${this.client.registry.commands.size}\n${list.join('\n')}` - return msg.reply({ files: [{ attachment: Buffer.from(text), name: 'commands.txt' }] }) - } -};
\ No newline at end of file diff --git a/src/commands/bot/generateservers.ts b/src/commands/bot/generateservers.ts deleted file mode 100644 index 50c65e2..0000000 --- a/src/commands/bot/generateservers.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; - -module.exports = class GenerateServersBot extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'generateservers', - aliases: [ - 'generate-servers', - 'genservers', - 'gen-servers' - ], - group: 'bot', - memberName: 'generateservers', - description: 'Generates a .txt file with all of the servers uwufier is in.', - examples: ['uwu!genservers'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true, - guarded: true, - hidden: true - }); - } - async run(msg: CommandoMessage) { - const list = this.client.guilds.cache - .map(g => { - const servers = g.name - return `* ** ${servers}:** ${g.id} - ${g.owner?.user.tag}` - }) - const text = `Total: ${this.client.guilds.cache.size}\n\n### Servers\n\n${list.join('\n')}` - return msg.reply({ files: [{ attachment: Buffer.from(text), name: 'servers.txt' }] }) - } -};
\ No newline at end of file diff --git a/src/commands/bot/github.ts b/src/commands/bot/github.ts deleted file mode 100644 index 9a9b08d..0000000 --- a/src/commands/bot/github.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class GitHubBot extends Command { - constructor(client) { - super(client, { - name: 'github', - aliases: ['git', 'gitlab'], - group: 'bot', - memberName: 'github', - description: 'Gives you a link to uwufier\'s authors\' (Sin) GitHub profile.', - examples: ['uwu!github'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [GitHub profile](https://github.com/8cy). ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/guildbackdoor.ts b/src/commands/bot/guildbackdoor.ts deleted file mode 100644 index 1282cdd..0000000 --- a/src/commands/bot/guildbackdoor.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random' - -module.exports = class GuildBackdoorBot extends Command { - constructor(client) { - super(client, { - name: 'guildbackdoor', - aliases: [ - 'guild-backdoor', - 'serverbackdoor', - 'server-backdoor' - ], - group: 'fun', - memberName: 'guildbackdoor', - description: 'Checks who the oldest member on the server is.', - examples: ['uwu!guildbackdoor 1234567890'], - throttling: { - usages: 5, - duration: 30 - }, - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - hidden: true, - args: [ - { - key: 'gGuild', - prompt: 'What server would you like to join?', - type: 'string' - } - ], - ownerOnly: true - }); - } - async run(msg: CommandoMessage, { gGuild }) { - if (this.client.guilds.cache.has(gGuild)) msg.reply(`Either that is not a valid guild ID or ${this.client.user} is not a member of that guild.`) - - gGuild = this.client.guilds.cache.get(gGuild) - - const invites = await gGuild.fetchInvites() - console.debug('This guild\'s invites:', invites) - if (invites.size > 0) { - msg.author.send(invites.first().url) - } - - // TODO: fix this one day, no idea how to. error: cant find permissionsfor on the channel thing - // for (const channel of gGuild.channels.cache.values()) { - // if (channel.permissionsFor(gGuild.me).has('CREATE_INSTANT_INVITE')) { - // msg.reply(await channel.createInvite({ maxAge: 0 }).url) - // } - // } - - //msg.reply('No existing invites or channels to invite you to. ' + emoji.random()) - } -};
\ No newline at end of file diff --git a/src/commands/bot/invite.ts b/src/commands/bot/invite.ts deleted file mode 100644 index c6fee83..0000000 --- a/src/commands/bot/invite.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class InviteBot extends Command { - constructor(client) { - super(client, { - name: 'invite', - aliases: ['inv'], - group: 'bot', - memberName: 'invite', - description: 'Gives you uwufier\'s invite link.', - examples: ['uwu!invite', 'uwu!inv'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription('To invite the bot, please use [this link](https://kyzer.co/discord/bots/uwufier/). ' + emoji.random()) - msg.say(emb) - } -}; diff --git a/src/commands/bot/ip.ts b/src/commands/bot/ip.ts deleted file mode 100644 index c565cec..0000000 --- a/src/commands/bot/ip.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; -import request from 'node-superfetch' - -module.exports = class IPBot extends Command { - constructor(client) { - super(client, { - name: 'ip', - group: 'bot', - memberName: 'ip', - description: 'Gives you uwufier\'s ip.', - examples: ['uwu!ip'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true - }); - } - async run(msg: CommandoMessage) { - let { body } = await request - .get('https://api.ipify.org') - .query({ format: 'json' }) - - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription(`uwufier\'s current IP address is **${body.ip}**. ` + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -};
\ No newline at end of file diff --git a/src/commands/bot/joinmessage.ts b/src/commands/bot/joinmessage.ts deleted file mode 100644 index 4de424f..0000000 --- a/src/commands/bot/joinmessage.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class InviteBot extends Command { - constructor(client) { - super(client, { - name: 'joinmessage', - aliases: ['joinm', 'mjoin', 'joinmsg'], - group: 'bot', - memberName: 'joinmessage', - description: 'Resends the message which the bot sent when initially joining a server, however, this one does NOT get sent to the guild owner.', - examples: [ - 'uwu!joinmessage', - 'uwu!joinm', - 'uwu!mjoin', - 'uwu!joinmsg' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let embed = new MessageEmbed() - .setDescription(`Hi! Thank you for inviting uwufier to your server! To view the complete list of commands, do \`uwu!help\`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the [support server](https://discord.com/invite/DVwXUwx). You can also do \`uwu!suggest<thing>\`. If you like the bot, please support the bot on our [top.gg page](https://top.gg/bot/699473263998271489/vote) or our [DBL page](https://discordbotlist.com/bots/699473263998271489/upvote)! ${emoji.random()}`) - msg.say(embed) - } -};
\ No newline at end of file diff --git a/src/commands/bot/leaveserver.ts b/src/commands/bot/leaveserver.ts deleted file mode 100644 index 8b7fee9..0000000 --- a/src/commands/bot/leaveserver.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando'; -import { Message } from 'discord.js'; -//@ts-ignore -import * as emoji from 'emoji-random'; - -module.exports = class LeaveServerBot extends Command { - constructor(client: CommandoClient) { - super(client, { - name: 'leaveserver', - aliases: [ - 'leave-server' - ], - group: 'bot', - memberName: 'leaveserver', - description: 'Leaves a specified server uwufier is in.', - examples: ['uwu!leaveserver'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true, - guarded: true, - hidden: true, - args: [ - { - key: 'serverId', - prompt: 'Which server would you like to leave? (ID)', - type: 'string', - } - ] - }); - } - async run(msg: CommandoMessage, { serverId }: any): Promise<Message | Message[]> { - await this.client.guilds.cache.get(serverId)?.leave(); - return msg.reply(`Succesfully left server **${this.client.guilds.cache.get(serverId)?.name} (${this.client.guilds.cache.get(serverId)?.id})**. ${emoji.random()}`); - } -};
\ No newline at end of file diff --git a/src/commands/bot/memorystats.ts b/src/commands/bot/memorystats.ts deleted file mode 100644 index cc2a424..0000000 --- a/src/commands/bot/memorystats.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; - -module.exports = class MemoryStatsBot extends Command { - constructor(client) { - super(client, { - name: 'memorystats', - aliases: [ - 'memstats', - 'mem-stats', - 'memory-stats', - 'memorystats', - 'memstat', - 'mem-stat', - 'memory-stat', - 'memorystat' - ], - group: 'bot', - memberName: 'memorystats', - description: 'Checks the full, current, approximate memory usage statistics of uwufier\'s Node.js process.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true - }); - } - run(msg: CommandoMessage) { - const used = process.memoryUsage(); - msg.reply(`The full, current, approximate memory usage statistics are currentaly; -\`\`\`js -rss: ${Math.round(used.rss / 1024 / 1024 * 100) / 100} MBs -heapTotal: ${Math.round(used.heapTotal / 1024 / 1024 * 100) / 100} MBs -heapUsed: ${Math.round(used.heapUsed / 1024 / 1024 * 100) / 100} MBs -external: ${Math.round(used.external / 1024 / 1024 * 100) / 100} MBs -\`\`\``) - } -};
\ No newline at end of file diff --git a/src/commands/bot/memoryusage.ts b/src/commands/bot/memoryusage.ts deleted file mode 100644 index e5ed33b..0000000 --- a/src/commands/bot/memoryusage.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class MemoryUsageBot extends Command { - constructor(client) { - super(client, { - name: 'memoryusage', - aliases: [ - 'memusage', - 'mem-usage', - 'memory-usage', - 'mem', - 'memory' - ], - group: 'bot', - memberName: 'memoryusage', - description: 'Checks the current, approximate memory usage of uwufier\'s Node.js process.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - ownerOnly: true - }); - } - run(msg: CommandoMessage) { - const used = process.memoryUsage().heapUsed / 1024 / 1024; - msg.reply(`The current, approximate memory usage is currently **${Math.round(used * 100) / 100}** MBs. ${emoji.random()}`) - } -}; diff --git a/src/commands/bot/npm.ts b/src/commands/bot/npm.ts deleted file mode 100644 index 06b9f43..0000000 --- a/src/commands/bot/npm.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class NPMBot extends Command { - constructor(client) { - super(client, { - name: 'npm', - group: 'bot', - memberName: 'npm', - description: 'Gives you a link to uwufier\'s authors\' (Sin) NPM profile.', - examples: ['uwu!npm'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [NPM profile](https://www.npmjs.com/~sinny). ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/owner.ts b/src/commands/bot/owner.ts deleted file mode 100644 index ac3ba93..0000000 --- a/src/commands/bot/owner.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class OwnerBot extends Command { - constructor(client) { - super(client, { - name: 'owner', - group: 'bot', - memberName: 'owner', - description: 'Self explanatory.', - examples: ['uwu!owner'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`<@217348698294714370> is the owner/ maintainer of this bot. ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/servercount.ts b/src/commands/bot/servercount.ts deleted file mode 100644 index 31f6482..0000000 --- a/src/commands/bot/servercount.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; -import emoji from 'emoji-random'; - -module.exports = class ServerCountBot extends Command { - constructor(client) { - super(client, { - name: 'servercount', - aliases: ['sc', 'scount', 'serverc'], - group: 'bot', - memberName: 'servercount', - description: 'Tells you the amount of servers uwufier is in.', - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - ownerOnly: true - }); - } - run(msg: CommandoMessage) { - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription(`Currently running on ${this.client.guilds.cache.size} server(s). ` + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -};
\ No newline at end of file diff --git a/src/commands/bot/status.ts b/src/commands/bot/status.ts deleted file mode 100644 index dbb5080..0000000 --- a/src/commands/bot/status.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { Command } from 'discord.js-commando'; -import emoji from 'emoji-random' -import config from '../../config.json' - -module.exports = class StatusBot extends Command { - constructor(client) { - super(client, { - name: 'status', - aliases: ['botstatus', 'bot-status'], - group: 'bot', - memberName: 'status', - description: 'Allows you to change uwufier\'s status.', - args: [ - { - key: 'uType', - prompt: 'Would you like to change the status type or status message?', - type: 'string', - default: '' - }, - { - key: 'uActivity', - prompt: 'What would you like to set the status message to?', - type: 'string', - default: '' - } - ], - examples: [ - 'uwu!botstatus type watching', - 'uwu!status t w', - 'uwu!status message youtube', - 'uwu!bs m lol' - ], - ownerOnly: true, - guarded: true - }); - } - async run(msg, { uType, uActivity }) { - let bType = this.client.user?.presence.activities[0].type; - let bActivity = this.client.user?.presence.activities[0].name; - - function uActivityCheck() { - if (uActivity == 'playing' || uActivity == 'p') { - return true - } else if (uActivity == 'streaming' || uActivity == 's') { - return true - } else if (uActivity == 'listening' || uActivity == 'l') { - return true - } else if (uActivity == 'watching' || uActivity == 'w') { - return true - } else { - return false - } - } - - if (uType == 'type' || uType == 't') { - if (uActivity == 'reset' || uActivity == 'r') { - this.client.user?.setActivity(this.client.user.presence.activities[0].name, { - type: 'WATCHING' - }); - } else { - if (uActivityCheck()) { - this.client.user?.setActivity(this.client.user.presence.activities[0].name, { - type: uActivity - }); - // TODO: fix this not settings the type - } else { - return msg.reply(`That is not a valid status type. ${emoji.random()}`) - } - } - } else if (uType == 'message' || uType == 'msg' || uType == 'm') { - if (uActivity == 'reset' || uActivity == 'r') { - this.client.user?.setActivity('uwu!help | v' + config['version'], { - type: bType - }); - } else { - this.client.user?.setActivity(uActivity, { - type: bType - }); - } - } else if (uType == 'reset' || uType == 'r') { - this.client.user?.setActivity('uwu!help | v' + config['version'], { - type: 'WATCHING' - }); - } else { - if (bType == 'WATCHING') { - var bTypeSoften = 'Watching' - } else if (bType == 'STREAMING') { - var bTypeSoften = 'Watching' - } else if (bType == 'PLAYING') { - var bTypeSoften = 'Playing' - } else if (bType == 'LISTENING') { - var bTypeSoften = 'Listening' - } else { - var bTypeSoften = 'Unresolved' - } - return msg.reply(`My current status is \`${bTypeSoften} ${bActivity}\`. ${emoji.random()}`) - } - } -};
\ No newline at end of file diff --git a/src/commands/bot/suggest.ts b/src/commands/bot/suggest.ts deleted file mode 100644 index a610a68..0000000 --- a/src/commands/bot/suggest.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class SuggestBot extends Command { - constructor(client) { - super(client, { - name: 'suggest', - group: 'bot', - memberName: 'suggest', - description: 'Allows you to suggest an addition or change!', - examples: ['uwu!suggest add more cool commands'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Thank you for your suggestion! ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/support.ts b/src/commands/bot/support.ts deleted file mode 100644 index 9475295..0000000 --- a/src/commands/bot/support.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class SupportBot extends Command { - constructor(client) { - super(client, { - name: 'support', - group: 'bot', - memberName: 'support', - description: 'Gives you uwufier\'s support server link.', - examples: ['uwu!support'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`For support, please join [this Discord server](https://discord.com/invite/DVwXUwx). ${emoji.random()}`) - msg.say(emb) - } -}; diff --git a/src/commands/bot/test.ts b/src/commands/bot/test.ts deleted file mode 100644 index 8140c6e..0000000 --- a/src/commands/bot/test.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; - -module.exports = class TestBot extends Command { - constructor(client) { - super(client, { - name: 'test', - group: 'bot', - memberName: 'test', - description: 'Do not test in production!', - examples: ['uwu!test'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - } - }); - } - run(msg: CommandoMessage) { - msg.reply(`Do not test in production! ${emoji.random()}`) - } -};
\ No newline at end of file diff --git a/src/commands/bot/twitch.ts b/src/commands/bot/twitch.ts deleted file mode 100644 index eb935c1..0000000 --- a/src/commands/bot/twitch.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class TwitchBot extends Command { - constructor(client) { - super(client, { - name: 'twitch', - aliases: ['stream', 'streaming'], - group: 'bot', - memberName: 'twitch', - description: 'Gives you a link to uwufier\'s authors\' (Sin) Twitch profile.', - examples: ['uwu!twitch'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [Twitch profile](https://www.twitch.tv/yosinny)! ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/twitter.ts b/src/commands/bot/twitter.ts deleted file mode 100644 index 04a8e56..0000000 --- a/src/commands/bot/twitter.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class TwitterBot extends Command { - constructor(client) { - super(client, { - name: 'twitter', - group: 'bot', - memberName: 'twitter', - description: 'Gives you a link to uwufier\'s authors\' (Sin) Twitter profile.', - examples: ['uwu!twitter'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [Twitter profile](https://twitter.com/9inny). ${emoji.random()}`) - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/uptime.ts b/src/commands/bot/uptime.ts deleted file mode 100644 index 768d43a..0000000 --- a/src/commands/bot/uptime.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { duration as _duration } from 'moment'; -import 'moment-duration-format'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -export default class UptimeBot extends Command { - constructor(client) { - super(client, { - name: 'uptime', - aliases: ['ut'], - group: 'bot', - memberName: 'uptime', - description: 'Tells you how long uwufier has been online.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!uptime', - 'uwu!ut' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - const duration = _duration(this.client.uptime).format(" D [days], H [hrs], m [mins], s [secs]"); - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription('<@699473263998271489> has been up for ' + duration + '. ' + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -}
\ No newline at end of file diff --git a/src/commands/bot/version.ts b/src/commands/bot/version.ts deleted file mode 100644 index 564fd2f..0000000 --- a/src/commands/bot/version.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; -import config from '../../config.json'; - -export default class VersionBot extends Command { - constructor(client) { - super(client, { - name: 'version', - group: 'bot', - memberName: 'version', - description: 'Tells you uwufier\'s current build version.', - throttling: { - usages: 5, - duration: 30 - }, - examples: [ - 'uwu!version' - ], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'] - }); - } - run(msg: CommandoMessage) { - msg.say('Please wait...').then(m => { - m.edit(`** **`); - - let emb = new MessageEmbed() - .setDescription(`uwufier\'s current build version is **v${config['version']}**. ` + emoji.random()) - .setColor(0xFFCC4D) - - msg.say(emb); - }); - } -}
\ No newline at end of file diff --git a/src/commands/bot/vote.ts b/src/commands/bot/vote.ts deleted file mode 100644 index 61ac999..0000000 --- a/src/commands/bot/vote.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class VoteBot extends Command { - constructor(client) { - super(client, { - name: 'vote', - group: 'bot', - memberName: 'vote', - description: 'Gives you uwufier\'s top.gg vote link.', - examples: ['uwu!vote'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription('To vote, please use [this link](https://discordbots.org/bot/699473263998271489/vote). 🗳') - msg.say(emb) - } -};
\ No newline at end of file diff --git a/src/commands/bot/website.ts b/src/commands/bot/website.ts deleted file mode 100644 index afc1ef3..0000000 --- a/src/commands/bot/website.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class WebsiteBot extends Command { - constructor(client) { - super(client, { - name: 'website', - aliases: ['site'], - group: 'bot', - memberName: 'website', - description: 'Gives you a link to uwufier\'s authors\' (Sin) website.', - examples: ['uwu!website'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [website](https://kyzer.co/)! ${emoji.random()}`) - msg.say(emb) - } -}; diff --git a/src/commands/bot/youtube.ts b/src/commands/bot/youtube.ts deleted file mode 100644 index c0c5289..0000000 --- a/src/commands/bot/youtube.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Command, CommandoMessage } from 'discord.js-commando'; -import emoji from 'emoji-random'; -import { MessageEmbed } from 'discord.js'; - -module.exports = class YouTubeBot extends Command { - constructor(client) { - super(client, { - name: 'youtube', - aliases: ['yt'], - group: 'bot', - memberName: 'youtube', - description: 'Gives you a link to uwufier\'s authors\' (Sin) YouTube profile.', - examples: ['uwu!youtube'], - userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'], - throttling: { - usages: 5, - duration: 30 - }, - }); - } - run(msg: CommandoMessage) { - let emb = new MessageEmbed() - .setDescription(`Here is <@217348698294714370>'s [YouTube profile](https://youtube.com/s1nny). Not the command you were looking for? If you were trying to play YouTube audio via the bot, please do \`uwu!play\` instead. ${emoji.random()}`) - msg.say(emb) - } -}; |