Open Scatter-Security opened 5 years ago
Want to submit a PR for this?
Actually, don't bother; I'm going to refactor the entire file anyway so this bug will be handled pretty soon
Ian, Good job on this bot. Other than the bug I specified it's really well written. Best, Justen
Get Outlook for Androidhttps://aka.ms/ghei36
From: Ian Sanders notifications@github.com Sent: Thursday, March 14, 2019 7:37:57 AM To: iansan5653/discord-votemaster Cc: Abstract; Author Subject: Re: [iansan5653/discord-votemaster] throws a unhandled error and crashes (#2)
Actually, don't bother; I'm going to refactor the entire file anyway so this bug will be handled pretty soon
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/iansan5653/discord-votemaster/issues/2#issuecomment-472890660, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AdpC0jIx_z9VP9HG1QUBM7pFimBemW78ks5vWl7FgaJpZM4bzXXB.
Thanks! I plan to take it a lot further but I haven't been on Discord in ages.
I hope you don't mind if I fork this. and implement my own features to make a multi purpose bot.
I'd like to use this for my cybersecurity club's discord.
Sure, but you may want to wait a little; I have some improvements I'll merge soon.
ISSUE: the command
!results #0
or!vote #0
is failing to catch some bad input. Input by a user it throws a unexpected error and crashes the script when a user sends a command!results
without the#
and
FIX: where
if(args[0].charAt(0) !== '#') {
should be
if(!args[0] || args[0].charAt(0) !== '#') {