commands are case sensitive #17
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/twitter-tipbot#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
see https://twitter.com/GhostsAncestral/status/1169974922703069185
Not sure if this has been fixed @tzarebczan but the following code should fix the case sensitive issue in index.js.
function checkTweet(tweet, msg) { switch (msg[1].toLowerCase()) { case "help": doHelp(tweet, msg); break; case "balance": doBalance(tweet, msg); break; case "deposit": doDeposit(tweet, msg); break; case "withdraw": doWithdraw(tweet, msg); break; case "tip": doTip(tweet, msg); break; case "terms": doTerms(tweet, msg); break; case "lbryian": logger.info("Got a command with the old format, handling it..."); checkTweet(tweet, msg.splice(1)); break; } }
Added
.toLowerCase()
toswitch (msg[1]) {