Simp-O-Matic

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

commit c2e24bc1fc39c2cb6da4d0fb28ffe6966bf9543f
parent e7aab43720634e9ec0b92ed88818d955a58068d5
Author: Daniel <23189912+danyisill@users.noreply.github.com>
Date:   Sat, 21 Mar 2020 18:26:01 +0300

Handle promise rejection
Diffstat:
Mlib/commands/yn.ts | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

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) + const { message } = home_scope + Promise.all(['✅', '❎'].map(message.react)).then(console.log).catch(console.log) };