Commit graph

219 commits

Author SHA1 Message Date
Niko Storni
34151fc92b fix roletip 2018-12-04 20:26:51 -05:00
Niko
4dcaea3370
Merge pull request #33 from lbryio/fix-priv-roletip
Update tipbot.js
2018-12-04 18:26:53 -05:00
Niko Storni
d12471cc10
update packages 2018-11-15 12:01:07 -05:00
Niko Storni
ab45b1060a Merge branch 'ykris45-patch-3' 2018-11-15 11:58:06 -05:00
Niko Storni
54fe1351bb run linter 2018-11-15 11:57:40 -05:00
YULIUS KURNIAWAN KRISTIANTO
ed3050b1ac
Update tipbot.js
bring back comma
2018-11-06 03:09:47 +07:00
YULIUS KURNIAWAN KRISTIANTO
136f17c4ad
strict balance on general and remove comma 2018-11-04 21:23:12 +07:00
Niko Storni
54c7caaa63
upgrade packages 2018-10-11 14:45:53 -04:00
Niko Storni
b7f0e96bde
update dependencies 2018-10-11 14:40:16 -04:00
filipnyquist
637f49ea93
Merge pull request #36 from Invariant-Change/patch-5
Tipbot Repairs
2018-10-10 17:22:10 +02:00
Electron - Mark Firth
cdb0ba25e4
Tipbot Repairs
Formatting corrections: URL contained markdown which is only supported in `embed: {}`
Duplicate command removed: `!tip` and `!tips` now display the same message so only one required.
Duplicate tipper name removed: The bot mentioned the tippers name twice concurrently.
Removed unnecessary code: Unnecessary code removed `${message.content.split(' ', 1)[0]}\`
Removed author:  Author was set as `!tip` and not required.
2018-10-09 22:11:14 +10:00
filipnyquist
3c09e5fb77
Merge pull request #35 from kcseb/master
Updated tipbot.js (Fixed some messages)
2018-10-08 23:16:01 +02:00
filipnyquist
821f92e5b4
Merge pull request #34 from ykris45/patch-2
add read faq to send tippers
2018-10-08 23:08:37 +02:00
Kenneth C
128351e176
Updated tipbot.js (Fixed some messages)
Changed a few things with when a tip is sent or errors out. (Instead of just "I don't know how to tip that amount", it sounds a bit better and more accurate.)
Changed the "Wubba lubba dub dub" message to something a bit more... normal? 
Also changed some phrasing with messages in general. Nothing that will change the functionality, more just the general appearance of the messages.
2018-10-05 23:23:03 -04:00
YULIUS KURNIAWAN KRISTIANTO
d7312ed308
fix typo 2018-10-06 05:33:25 +07:00
YULIUS KURNIAWAN KRISTIANTO
cc836f5b53
add read faq to send tippers 2018-10-04 22:32:32 +07:00
Thomas Zarebczan
1545685502
Update tipbot.js
fix private roletip? 

Similar to https://github.com/lbryio/lbry-tipbot/pull/20/files
2018-09-26 22:43:10 -04:00
filipnyquist
a82d7509c6
Merge pull request #32 from Invariant-Change/patch-2
Slight Mix Up Fixed <address> <amount>
2018-07-13 14:32:21 +02:00
Electron - Mark Firth
c1aefa0b33
Slight Mix Up Fixed <address> <amount>
Slight Mix Up Fixed
From: `<amount> <address>`
To:  `<address> <amount>`
2018-07-13 22:30:59 +10:00
filipnyquist
c33625efc3
Merge pull request #31 from lbryio/fix-helpmsgs
Fix helpmsgs, tested in dev env.
2018-07-13 13:13:12 +02:00
filipnyquist
e9c30f3586 Moved all the help to the same msg used throughout the whole tipbot, removes the needs of specialized helpmsgs. also adds the tipbot FAQ link. 2018-07-13 11:41:24 +02:00
filipnyquist
b016be3a86 Moved all the help to the same msg used throughout the whole tipbot, removes the needs of specialized helpmsgs. also adds the tipbot FAQ link. 2018-07-13 11:41:04 +02:00
filipnyquist
affd92a2da
Fixed missing commas from chris45s PR. 2018-07-12 11:30:45 +02:00
filipnyquist
fda287b097
Merge pull request #29 from ykris45/patch-1
As no code touching the tipping functions is in this I´ll merge and update the running bot.
2018-07-12 10:53:28 +02:00
YULIUS KURNIAWAN KRISTIANTO
e4de016884
add faq tipbot-discord to the tipbot 2018-07-11 20:38:33 +07:00
Niko Storni
da96401cbf
fix tipping bug 2018-05-04 09:20:24 -04:00
Niko Storni
037958db49
update dependencies 2018-05-04 07:33:43 -04:00
Niko
bf1696878a
Merge pull request #28 from khay12/master
Fixed !roletip
2018-05-04 06:15:24 -04:00
Chocolate
6413a7042f
Fixed !roletip 2018-05-04 17:50:09 +08:00
Chocolate
510c2399d6
Fixed !roletip 2018-05-04 17:06:23 +08:00
filipnyquist
7e9134e4cc
Merge pull request #25 from ProfessorDey/patch-5
Quick fix for private tip message tagging
2018-04-10 19:43:06 +02:00
ProfessorDey
9059d90a17
Quick fix for private tip message tagging
For some reason User.tag includes username#1234, not just 1234 as one would expect, so quick fix so these display properly. Nothing complicated.
2018-04-10 17:03:33 +00:00
Niko
34b7b2391b
Merge pull request #20 from ProfessorDey/patch-4
Fixing Roletip sendLBC call
2018-03-21 10:12:02 -04:00
ProfessorDey
db8d90b9a7
Fixing Roletip sendLBC call
Apparently despite being a supposedly smart language, JS still insists on making me convert a string of numbers from a number back to a string before _and_ inside a function call, yay aggressively dynamically typed languages.

This _should_ fix the matter now
2018-03-20 17:18:30 +00:00
Niko
44f4b4407f
Merge pull request #19 from ProfessorDey/patch-3
Fix Private Mode Usernames
2018-03-08 11:15:22 +01:00
ProfessorDey
6237777be0
Fix Private Mode Usernames
So it turns out that if you try to print a userid of someone that isn't in that server, such as in a dm channel, it simply displays as invalid user (Even though userids are unique across the entirety of discord, got to love that logic). So now the private message instead uses the .username and .tag attributes to provide the normal userid, like so: @GenericUser#1234

While this may be a tad confusing to those using nicknames, it identifies the exact individual doing the tipping, it just might require a little digging.
2018-03-08 07:55:27 +00:00
Niko
22af3edc89
Merge pull request #18 from ProfessorDey/patch-2
Sanitise User Check
2018-03-01 02:10:59 +01:00
ProfessorDey
a2d1910be4
Sanitise User Check
This is something we apparently have always been missing because that was from the old code, iirc.
2018-02-28 23:50:24 +00:00
Niko
ea8773ffaf
Merge pull request #17 from ProfessorDey/patch-1
Change !tipcommands to !tips
2018-03-01 00:13:49 +01:00
ProfessorDey
535a1e365c
Change !tipcommands to !tips
What it says on the tin.
2018-02-28 22:36:41 +00:00
Niko
ebe97e08a3
fix capitalization typo 2018-02-28 23:22:52 +01:00
Niko
c749ee4777
add missing # in channel messages 2018-02-28 23:15:53 +01:00
Niko
80d1ed97dc
Merge pull request #13 from ProfessorDey/master
Adding Multi User & Role Tipping and Help/Warning Optimisation
2018-02-28 22:54:00 +01:00
Niko Storni
8a29b053a0
missed 2 coins -> credits 2018-02-22 02:35:49 +01:00
Niko Storni
6cfd4f578e
updated default configuration 2018-02-22 02:26:39 +01:00
Niko Storni
f2c784dc23
Merge branch 'master' into multirole
ported over the changes made in master
changed vars to let
simplified code
added missing dependency to package.json
2018-02-22 02:22:58 +01:00
Niko Storni
7868578a7b
converted some strings in template strings
replaced hardcoded channel
fixed prettier precommit
prettified bot.js
2018-02-22 01:39:04 +01:00
Niko Storni
366de08922
cleaned code up
used more of the configuration
removed useless code
converted vars into lets
updated packages
updated precommit hooks
2018-02-22 01:03:18 +01:00
ProfessorDey
8eb5bb9578
Integrating final MSFT fixes
Now the last little changes have been implemented, had to modify how we got the user to message since we were previously getting the first user mentioned in the message, whereas we now match against all known users in the guild. This means users actually get messaged by, say, rolebot even if they're not in the channel you're tipping from. Of course you can't directly mention anyone not in the channel for multitip, so that's a non-issue in most use cases.

Also had to ensure certain function calls were sending the right type, because dynamic languages and lack of type safety.

That _should_ be absolutely everything needed to have it fully functional.
2018-02-21 19:52:46 +00:00
ProfessorDey
b6598a4ffa
Final functionality fixes from MSFTblockchain
All finally operational and tested on MSFT's RVN server, code ported back over after figuring out various JS specific implementation issues. Now all works correctly and doesn't include anyone it shouldn't.
2018-02-12 22:43:37 +00:00