summaryrefslogtreecommitdiff
path: root/src/commands/utility/google.ts
diff options
context:
space:
mode:
author8cy <[email protected]>2020-06-27 22:52:54 -0700
committer8cy <[email protected]>2020-06-27 22:52:54 -0700
commit80951013e391aab140800e4f386867e6c391553f (patch)
tree3d7101237ef1cd8d6fe2a2fab751a2dc55ae7d84 /src/commands/utility/google.ts
parentmore config shit (diff)
downloaddep-core-80951013e391aab140800e4f386867e6c391553f.tar.xz
dep-core-80951013e391aab140800e4f386867e6c391553f.zip
add ts defs so not a lot of errors left
- made .todo file for epic error tracking
Diffstat (limited to 'src/commands/utility/google.ts')
-rw-r--r--src/commands/utility/google.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/commands/utility/google.ts b/src/commands/utility/google.ts
index 68185cc..2c84bd5 100644
--- a/src/commands/utility/google.ts
+++ b/src/commands/utility/google.ts
@@ -1,9 +1,8 @@
-import { Command, CommandoMessage } from 'discord.js-commando';
-import emoji from 'emoji-random';
+import { Command, CommandoMessage, CommandoClient } from 'discord.js-commando';
import { MessageEmbed } from 'discord.js';
module.exports = class GoogleUtility extends Command {
- constructor(client) {
+ constructor(client: CommandoClient) {
super(client, {
name: 'google',
group: 'utility',
@@ -25,11 +24,11 @@ module.exports = class GoogleUtility extends Command {
]
});
}
- async run(msg: CommandoMessage, { gTerm }) {
+ run(msg: CommandoMessage, { gTerm }: any) {
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)
+ return msg.say(embed)
}
}; \ No newline at end of file