summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-09 16:33:22 -0700
committer8cy <[email protected]>2020-05-09 16:33:22 -0700
commit785d75743d4666f312d15da03de54eda57baad5e (patch)
tree23b94f92595e88daf040f97a21552e22b9e0a50d /src
parentchange youtube cmd bc of error (diff)
downloaddep-core-785d75743d4666f312d15da03de54eda57baad5e.tar.xz
dep-core-785d75743d4666f312d15da03de54eda57baad5e.zip
add google, suggest + add suggest to joinmsg
- account for missing version increments
Diffstat (limited to 'src')
-rw-r--r--src/bot.ts2
-rw-r--r--src/commands/bot/joinmessage.ts2
-rw-r--r--src/commands/bot/suggest.ts26
-rw-r--r--src/commands/utility/google.ts35
-rw-r--r--src/config.json2
5 files changed, 64 insertions, 3 deletions
diff --git a/src/bot.ts b/src/bot.ts
index 452df4f..cd085b5 100644
--- a/src/bot.ts
+++ b/src/bot.ts
@@ -82,7 +82,7 @@ client.on('warn', console.warn)
client.on('guildCreate', guild => {
console.log(`Joined server: ${guild.name}`)
- guild.owner?.send('Hi! Thank you for inviting my bot to your server! To view the complete list of commands, do `uwu!help`. If you\'d like, you can also change the prefix using `uwu!prefix change <prefix>`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the support server: https://crack.cf/uwufier-support. ' + emoji.random())
+ guild.owner?.send('Hi! Thank you for inviting my bot to your server! To view the complete list of commands, do `uwu!help`. If you\'d like, you can also change the prefix using `uwu!prefix change <prefix>`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the support server: https://crack.cf/uwufier-support. You can also do `uwu!suggest <thing>.` ' + emoji.random())
//@ts-ignore
client.guilds.cache.get('704032355987488791')?.channels.cache.get('706818034999754792')?.send(`Joined server: **${guild.name}**.`)
})
diff --git a/src/commands/bot/joinmessage.ts b/src/commands/bot/joinmessage.ts
index ed974fd..fe55627 100644
--- a/src/commands/bot/joinmessage.ts
+++ b/src/commands/bot/joinmessage.ts
@@ -24,6 +24,6 @@ module.exports = class InviteBot extends Command {
});
}
run(msg: CommandoMessage) {
- msg.reply('Hi! Thank you for inviting my bot to your server! To view the complete list of commands, do `uwu!help`. If you\'d like, you can also change the prefix using `uwu!prefix change <prefix>`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the support server: https://crack.cf/uwufier-support. ' + emoji.random())
+ msg.reply('Hi! Thank you for inviting my bot to your server! To view the complete list of commands, do `uwu!help`. If you\'d like, you can also change the prefix using `uwu!prefix change <prefix>`. If you want to contact the lead developer for possible suggestions or to report a bug, please join the support server: https://crack.cf/uwufier-support. You can also do `uwu!suggest <thing>.` ' + emoji.random())
}
}; \ No newline at end of file
diff --git a/src/commands/bot/suggest.ts b/src/commands/bot/suggest.ts
new file mode 100644
index 0000000..a610a68
--- /dev/null
+++ b/src/commands/bot/suggest.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 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/utility/google.ts b/src/commands/utility/google.ts
new file mode 100644
index 0000000..68185cc
--- /dev/null
+++ b/src/commands/utility/google.ts
@@ -0,0 +1,35 @@
+import { Command, CommandoMessage } from 'discord.js-commando';
+import emoji from 'emoji-random';
+import { MessageEmbed } from 'discord.js';
+
+module.exports = class GoogleUtility extends Command {
+ constructor(client) {
+ super(client, {
+ name: 'google',
+ group: 'utility',
+ memberName: 'google',
+ description: 'Googles something for you.',
+ examples: ['uwu!google sin'],
+ userPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ clientPermissions: ['SEND_MESSAGES', 'READ_MESSAGE_HISTORY'],
+ throttling: {
+ usages: 5,
+ duration: 30
+ },
+ args: [
+ {
+ key: 'gTerm',
+ prompt: 'What would you like to search for?',
+ type: 'string'
+ }
+ ]
+ });
+ }
+ async run(msg: CommandoMessage, { gTerm }) {
+ let embed = new MessageEmbed()
+ .setTitle('**Google Search**')
+ .setColor(0xFFCC4D)
+ .addField('Searching Google for`' + gTerm + '`...', `[Click Here](https://google.com/search?q=${gTerm.replace(/ /g, '%20')})`)
+ msg.say(embed)
+ }
+}; \ No newline at end of file
diff --git a/src/config.json b/src/config.json
index dd48609..c6aed3b 100644
--- a/src/config.json
+++ b/src/config.json
@@ -1,7 +1,7 @@
{
"secret":"Njk5NDczMjYzOTk4MjcxNDg5.XpU5oQ.btZuxVudhNllSQY6CxrXXtMJm9A",
"yt-api-key":"AIzaSyCeG1lQAeInv4vjFv_eTL9IFAFNdQC9Nk8",
- "version":"1.10.6",
+ "version":"1.10.11",
"fortniteTrackerNetworkToken": "4cf21f95-5f1a-412a-b4a7-e5424adc314a",
"maxMultipler": 100,
"minMultipler": 1.01