aboutsummaryrefslogtreecommitdiff
path: root/badapple.js
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-03-07 13:03:54 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-03-07 13:03:54 +0100
commitf627cc6d32756abc4d031042ca759ca6cbf86fde (patch)
treef5fc3238ad6f327cfca56102e6f56a93df3d5b86 /badapple.js
parent54112e2795486dd4c34ae448404bc34b914c8409 (diff)
downloadfurrybot-discord-f627cc6d32756abc4d031042ca759ca6cbf86fde.tar.xz
Add bad appleHEADmaster
Diffstat (limited to 'badapple.js')
-rw-r--r--badapple.js21
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)
+ })
+ }
+}