summaryrefslogtreecommitdiff
path: root/src/commands/bot
diff options
context:
space:
mode:
author8cy <[email protected]>2020-04-29 14:42:03 -0700
committer8cy <[email protected]>2020-04-29 14:42:03 -0700
commit9b2ab3b7a29983beba6908644a69925fd7adf253 (patch)
tree2d62bbe56895bf1349b86f89d021d0ce67f6a608 /src/commands/bot
parentformatting, blacklists, v9.0.1 (diff)
downloaddep-core-9b2ab3b7a29983beba6908644a69925fd7adf253.tar.xz
dep-core-9b2ab3b7a29983beba6908644a69925fd7adf253.zip
add contact cmds, qol updates/ formatting, v9.1.0
Diffstat (limited to 'src/commands/bot')
-rw-r--r--src/commands/bot/commandsamount.ts28
-rw-r--r--src/commands/bot/email.ts27
-rw-r--r--src/commands/bot/generatecommands.ts3
-rw-r--r--src/commands/bot/github.ts27
-rw-r--r--src/commands/bot/joinmessage.ts2
-rw-r--r--src/commands/bot/npm.ts26
-rw-r--r--src/commands/bot/servercount.ts6
-rw-r--r--src/commands/bot/twitch.ts27
-rw-r--r--src/commands/bot/twitter.ts26
-rw-r--r--src/commands/bot/website.ts27
-rw-r--r--src/commands/bot/youtube.ts27
11 files changed, 219 insertions, 7 deletions
diff --git a/src/commands/bot/commandsamount.ts b/src/commands/bot/commandsamount.ts
new file mode 100644
index 0000000..49b743e
--- /dev/null
+++ b/src/commands/bot/commandsamount.ts
@@ -0,0 +1,28 @@
+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
new file mode 100644
index 0000000..d884b99
--- /dev/null
+++ b/src/commands/bot/email.ts
@@ -0,0 +1,27 @@
+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 the bot author\'s (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
index 11010c0..e1079f1 100644
--- a/src/commands/bot/generatecommands.ts
+++ b/src/commands/bot/generatecommands.ts
@@ -1,7 +1,4 @@
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 GenerateCommandsBot extends Command {
constructor(client) {
diff --git a/src/commands/bot/github.ts b/src/commands/bot/github.ts
new file mode 100644
index 0000000..426d7ec
--- /dev/null
+++ b/src/commands/bot/github.ts
@@ -0,0 +1,27 @@
+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 the bot author\'s (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/joinmessage.ts b/src/commands/bot/joinmessage.ts
index a98bee5..ed974fd 100644
--- a/src/commands/bot/joinmessage.ts
+++ b/src/commands/bot/joinmessage.ts
@@ -8,7 +8,7 @@ module.exports = class InviteBot extends Command {
aliases: ['joinm', 'mjoin', 'joinmsg'],
group: 'bot',
memberName: 'joinmessage',
- description: 'Resends the message which the bot sends when initially joining a server, however, this one doesn\'t go to the guild owner.',
+ 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',
diff --git a/src/commands/bot/npm.ts b/src/commands/bot/npm.ts
new file mode 100644
index 0000000..fcb84a5
--- /dev/null
+++ b/src/commands/bot/npm.ts
@@ -0,0 +1,26 @@
+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 the bot author\'s (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/servercount.ts b/src/commands/bot/servercount.ts
index 84fdaae..31f6482 100644
--- a/src/commands/bot/servercount.ts
+++ b/src/commands/bot/servercount.ts
@@ -2,14 +2,14 @@ import { Command, CommandoMessage } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
import emoji from 'emoji-random';
-module.exports = class ServerCountServer extends Command {
+module.exports = class ServerCountBot extends Command {
constructor(client) {
super(client, {
name: 'servercount',
aliases: ['sc', 'scount', 'serverc'],
- group: 'server',
+ group: 'bot',
memberName: 'servercount',
- description: 'Tells you the amount of servers uwufy is in.',
+ description: 'Tells you the amount of servers uwufier is in.',
userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
ownerOnly: true
diff --git a/src/commands/bot/twitch.ts b/src/commands/bot/twitch.ts
new file mode 100644
index 0000000..e8f8c1e
--- /dev/null
+++ b/src/commands/bot/twitch.ts
@@ -0,0 +1,27 @@
+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 the bot author\'s (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
new file mode 100644
index 0000000..5817000
--- /dev/null
+++ b/src/commands/bot/twitter.ts
@@ -0,0 +1,26 @@
+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 the bot author\'s (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/website.ts b/src/commands/bot/website.ts
new file mode 100644
index 0000000..209af4d
--- /dev/null
+++ b/src/commands/bot/website.ts
@@ -0,0 +1,27 @@
+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', 'cyne.cf', 'cyne'],
+ group: 'bot',
+ memberName: 'website',
+ description: 'Gives you a link to the bot author\'s (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://cyne.cf/)! ${emoji.random()}`)
+ msg.say(emb)
+ }
+}; \ No newline at end of file
diff --git a/src/commands/bot/youtube.ts b/src/commands/bot/youtube.ts
new file mode 100644
index 0000000..901dd74
--- /dev/null
+++ b/src/commands/bot/youtube.ts
@@ -0,0 +1,27 @@
+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 the bot author\'s (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 [Twitter profile](https://www.youtube.com/channel/UCJ-orR4HLwr2sJ1sRpFezSw?view_as=subscriber). 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)
+ }
+}; \ No newline at end of file