mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 06:42:51 +02:00
Can't assign a new const idiot
This commit is contained in:
@@ -53,9 +53,9 @@ module.exports = class MemeCommand extends Command {
|
|||||||
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!');
|
if (!message.channel.permissionsFor(this.client.user).hasPermission('ATTACH_FILES')) return message.say(':x: Error! I don\'t have the Attach Files Permission!');
|
||||||
}
|
}
|
||||||
const type = args.type.toLowerCase();
|
const type = args.type.toLowerCase();
|
||||||
const toprow = args.toprow.replace(/[ ]/g, '-');
|
let toprow = args.toprow.replace(/[ ]/g, '-');
|
||||||
toprow = toprow.replace(/[?]/g, '~q');
|
toprow = toprow.replace(/[?]/g, '~q');
|
||||||
const bottomrow = args.bottomrow.replace(/[ ]/g, '-');
|
let bottomrow = args.bottomrow.replace(/[ ]/g, '-');
|
||||||
bottomrow = bottomrow.replace(/[?]/g, '~q');
|
bottomrow = bottomrow.replace(/[?]/g, '~q');
|
||||||
const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`;
|
const link = `https://memegen.link/${type}/${toprow}/${bottomrow}.jpg`;
|
||||||
return message.channel.sendFile(link).catch(() => message.say(':x: Error! Something went wrong!'));
|
return message.channel.sendFile(link).catch(() => message.say(':x: Error! Something went wrong!'));
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "23.0.1",
|
"version": "23.0.2",
|
||||||
"description": "A Discord Bot",
|
"description": "A Discord Bot",
|
||||||
"main": "shardingmanager.js",
|
"main": "shardingmanager.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user