Simp-O-Matic

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

commit c66009eb49ff922a5fdbc5ec97dc9d4f99412066
parent 8b64e973d035cb6a2bcdcdd9dc7a69610712c24c
Author: danyisill <danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 16:22:09 +0300

fix 2

Diffstat:
Mlib/commands/cowsay.ts | 2+-
Mlib/commands/figlet.ts | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/commands/cowsay.ts b/lib/commands/cowsay.ts @@ -1,5 +1,5 @@ import { execFileSync } from 'child_process' export default home_scope => { const { message, args } = home_scope - message.answer('``` \n' + execFileSync('/bin/cowsay', args) + '```', {encoding: 'utf8'}) // this is safe because no shell is spawned + message.answer('``` \n' + execFileSync('/bin/cowsay', args, {encoding: 'utf8'}) + '```') // this is safe because no shell is spawned } \ No newline at end of file diff --git a/lib/commands/figlet.ts b/lib/commands/figlet.ts @@ -1,5 +1,5 @@ import { execFileSync } from 'child_process' export default home_scope => { const { message, args } = home_scope - message.answer('``` \n' + execFileSync('/bin/figlet', args) + '```', {encoding: 'utf8'}) // this is safe because no shell is spawned + message.answer('``` \n' + execFileSync('/bin/figlet', args, {encoding: 'utf8'}) + '```') // this is safe because no shell is spawned } \ No newline at end of file