diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-03-07 13:03:54 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2022-03-07 13:03:54 +0100 |
commit | f627cc6d32756abc4d031042ca759ca6cbf86fde (patch) | |
tree | f5fc3238ad6f327cfca56102e6f56a93df3d5b86 /badapple.js | |
parent | 54112e2795486dd4c34ae448404bc34b914c8409 (diff) | |
download | furrybot-discord-f627cc6d32756abc4d031042ca759ca6cbf86fde.tar.xz |
Diffstat (limited to 'badapple.js')
-rw-r--r-- | badapple.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/badapple.js b/badapple.js new file mode 100644 index 0000000..c8b56c5 --- /dev/null +++ b/badapple.js @@ -0,0 +1,21 @@ +const badapple = require("./badapple.json") + +module.exports = { + badapple: { + operator: true, + func: msg => msg.reply("loading...") + .then(canvas => { + const frames = badapple.frames.map(frame => "```\n" + frame + "```") + + const iv = setInterval(_ => { + const frame = frames.shift() + + if (frame) + canvas.edit(frame) + else + clearInterval(iv) + + }, 1000 / badapple.fps) + }) + } +} |