Added Karaba() and bug fixes

This commit is contained in:
Killian
2020-12-12 13:56:25 +01:00
parent 47c121ec40
commit 4be539163d
32 changed files with 66 additions and 39 deletions

View File

@@ -9,7 +9,7 @@ module.exports = class Triggered {
* @param {number} timeout
*/
async getImage(image, timeout = 15) {
if (!image) throw new Error(`You must provide an image.`);
if (!image) throw new Error(`You must provide an image as a first argument.`);
if (isNaN(timeout)) throw new Error(`The timeout argument must be a number.`);
const base = await Canvas.loadImage(`${__dirname}/../../assets/triggered.png`);
const img = await Canvas.loadImage(image);