Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit ee6daa0987d018fe763b4788faa22a071def2a36
parent c2e24bc1fc39c2cb6da4d0fb28ffe6966bf9543f
Author: Fredrik <moi@knutsen.co>
Date:   Sat, 21 Mar 2020 15:29:57 +0000

Bind function back to its original object.
Diffstat:
Mlib/commands/yn.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/commands/yn.ts b/lib/commands/yn.ts @@ -1,4 +1,4 @@ export default home_scope => { const { message } = home_scope - Promise.all(['✅', '❎'].map(message.react)).then(console.log).catch(console.log) + Promise.all(['✅', '❎'].map(message.react.bind(message))).then(console.log).catch(console.log) };