mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-13 15:58:06 +02:00
Remove some encodeURI's
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class IMDBCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES', 'EMBED_LINKS'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let queryMovie = encodeURI(args.movie);
|
||||
let queryMovie = args.movie;
|
||||
try {
|
||||
let response = await request
|
||||
.get(`http://www.omdbapi.com/`)
|
||||
|
||||
@@ -23,7 +23,7 @@ module.exports = class YodaCommand extends commando.Command {
|
||||
if (!message.channel.permissionsFor(this.client.user).hasPermission(['SEND_MESSAGES', 'READ_MESSAGES'])) return;
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
let turnToYoda = encodeURI(args.text);
|
||||
let turnToYoda = args.text;
|
||||
try {
|
||||
let response = await request
|
||||
.get('https://yoda.p.mashape.com/yoda')
|
||||
|
||||
Reference in New Issue
Block a user