Commit graph

12 commits

Author SHA1 Message Date
Niko Storni
09f50ffc5c removed ! from IDs
formatted code
upgraded dependencies
2017-12-25 01:49:45 +01:00
Niko Storni
c1ad12824c fixed improper syntax
added package-lock
2017-12-06 19:39:31 +01:00
Niko
7eb3092fde
Merge pull request #3 from ProfessorDey/patch-1
Added Tipbot Privacy Mode
2017-12-05 01:39:35 +01:00
Niko Storni
95ea4f403e prettified code 2017-11-23 02:01:52 +01:00
Niko Storni
a199564da6 removed trigger on message edits
upgraded packages
2017-11-23 01:41:23 +01:00
ProfessorDey
ec48f114d8
Added Tipbot Privacy Mode
Allow for Tipbot to be used privately while still notifying the user that has received the tip, via private message.

Updates the Help message for new usage instructions, fixes misspelling of 'address' and adds a Key for the [ ] and < > syntax, as some users may not understand their usage.

Reworks the subcommand parsing by using a more compact Switch Function. Necessitates the use of 'break;' but is far more compact and legible, presumed the old if else block is from early development with fewer features available. Switch statement should allow for easier expansion.

Modifies doTip() to avoid requiring code duplication, includes two new variables used to indicate that the tip should be done in privacy mode and where the tip value is located in the 'words' array.

Significant change to sendLbc and it's function call, requirement for private message for recipient required User object, thus the function now requires the actual GuildMember object, not only the ID. While this marginally increases overhead, it should also allow access to the send() function for that Guild Member, allowing for private message to be sent. Further the addition of a privacy flag (0 for non-private, 1 for private) was added so that the function can determine whether to send a public or private response. this required updating references to the Guild Member's id to 'member.id', but otherwise operation remains the same until the transaction is completed, following which it will check the privacy flag and if it is set, will privately send the successful tip message to both author and recipient, otherwise it will simply reply via the normal '.reply()' function.
2017-11-14 18:33:17 +01:00
filipnyquist
0c6162c184
Fixed problem with balances.
Fixed the problem regarding MSFTservers balance and found a small problem which should be fixed by this quickfix, someone please review ASAP.
2017-11-01 20:19:00 +01:00
LavRadis
cb800bdb8e Edited !tip help line 2017-10-26 19:46:41 +02:00
filipnyquist
1f5a7ace57 Update tipbot.js 2017-10-25 22:14:37 +02:00
filipnyquist
6d3749f970 Update bot.js 2017-10-25 22:00:17 +02:00
filipnyquist
7e0e3e8400 Update tipbot.js 2017-10-25 21:44:38 +02:00
Fillerino
f018335f7b Tipbot is here!
Please review!
2017-10-25 21:12:38 +02:00