Fixed issue with lengthen, added new activity messages
This commit is contained in:
parent
70c4ff298f
commit
b8527067d9
3 changed files with 6 additions and 3 deletions
|
@ -5,8 +5,10 @@ exports.run = async (message, args) => {
|
||||||
message.channel.sendTyping();
|
message.channel.sendTyping();
|
||||||
if (args.length === 0 || !urlCheck(args[0])) return `${message.author.mention}, you need to provide a short URL to lengthen!`;
|
if (args.length === 0 || !urlCheck(args[0])) return `${message.author.mention}, you need to provide a short URL to lengthen!`;
|
||||||
if (urlCheck(args[0])) {
|
if (urlCheck(args[0])) {
|
||||||
const url = await fetch(args[0], { redirect: "manual" });
|
const url = await fetch(encodeURI(args[0]), { redirect: "manual" });
|
||||||
return url.headers.get("location") || args[0];
|
return url.headers.get("location") || args[0];
|
||||||
|
} else {
|
||||||
|
return `${message.author.mention}, that isn't a URL!`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -109,5 +109,7 @@
|
||||||
"alvin the chipmunk nightcore",
|
"alvin the chipmunk nightcore",
|
||||||
"braaaaap",
|
"braaaaap",
|
||||||
"Schmelf?",
|
"Schmelf?",
|
||||||
"Troll"
|
"Troll",
|
||||||
|
"ay yo the pizza here",
|
||||||
|
"100 gecs"
|
||||||
]
|
]
|
|
@ -2,7 +2,6 @@
|
||||||
const { Client } = require("eris");
|
const { Client } = require("eris");
|
||||||
const client = new Client(process.env.TOKEN, {
|
const client = new Client(process.env.TOKEN, {
|
||||||
disableEvents: {
|
disableEvents: {
|
||||||
CHANNEL_CREATE: true,
|
|
||||||
CHANNEL_DELETE: true,
|
CHANNEL_DELETE: true,
|
||||||
CHANNEL_UPDATE: true,
|
CHANNEL_UPDATE: true,
|
||||||
GUILD_BAN_REMOVE: true,
|
GUILD_BAN_REMOVE: true,
|
||||||
|
|
Loading…
Reference in a new issue