Simp-O-Matic

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

commit b5b4f159dc6dfb888b901a93e324ac2bb8603084
parent 6d11b6f5253a42caada39a44fec2ecfe69deb06e
Author: danyisill <danyisill@users.noreply.github.com>
Date:   Thu, 19 Mar 2020 16:05:42 +0300

Create mock.ts

Diffstat:
Alib/commands/mock.ts | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/lib/commands/mock.ts b/lib/commands/mock.ts @@ -0,0 +1,11 @@ +export default home_scope => { + //todo: if no args, mock the previous message, but this could be implemented via .alias and !!^ + const { message, args } = home_scope; + let b = false; + message.answer([...args.join(' ').toLowerCase()].map(l => { + if(l == l.toUpperCase()) + return l + else + return (b = !b)?l.toUpperCase():l + }).join() || 'sAy SoMeThInG wIlL yA?') +}+ \ No newline at end of file