Commit graph

38 commits

Author SHA1 Message Date
Ralph
3670026a8c
Comment and disable RoleSetter 2020-11-03 02:42:45 -05:00
Ralph
2d5f079781
Add baserole check to avoid dupe messages 2020-05-22 08:52:16 -04:00
Ralph
7f3a004af9
Fix typos in messages 2019-12-27 00:02:05 -05:00
Ralph
419fb25c50
Remove note about Case-Sensitive roles 2019-12-26 23:56:41 -05:00
Ralph
7b76892629
Change LBRYian base role to LBRY-Curious 2019-12-26 23:55:07 -05:00
felhe
f7bb1cb942 Simplify expressions in rolesetter 2019-10-11 01:00:15 +02:00
felhe
90f7b91274 Fix crashing at role commands in private DMs 2019-10-10 23:42:20 +02:00
ProfessorDey
74d4dec0dc
Simplify rolesetter.js Control Logic
Eliminates nesting of if-else statements and follows imperative control logic, making it much clearer what error messages are which and what order logic is handled in. Also neatens up the calls to 'msg.channel.send' into a single compact function declaration. Also eliminates case sensitivity entirely with a minimal performance hit by only performing '.toLowerCase()' on the first check for new/oldrole, though this could be replaced with a regexp object test instead. Every other comparison uses the matched role's name as this is guaranteed to be the correct case, assuming no issues with the config itself. This means users can enter the role in any case, preventing the biggest irritation to most users besides spelling errors.
2019-10-08 22:54:01 +01:00
Ralph
5f3f2a7461
Add catch for DMs 2019-02-14 18:40:36 -05:00
Ralph
f6cd59d756
Ran prettier 2018-12-09 14:40:48 -05:00
Ralph
82472a8870
Moved comment 2018-12-09 14:35:47 -05:00
Ralph
ba0af0d3e9
Update rolesetter.js 2018-12-09 14:30:10 -05:00
Ralph
f7dec07e50
Updated output of roles list, added baserole check 2018-12-09 14:22:43 -05:00
Ralph
67be623b3f
Corrected syntax 2018-12-09 14:03:22 -05:00
Ralph
f6b92bd28a
Adds LBRYian to roles help text 2018-12-09 12:58:20 -05:00
Ralph
dbc1e5be14
Allows for Baserole to be self-assigned 2018-12-09 12:53:04 -05:00
filipnyquist
8276a581eb
Remove toLowercase until bug has been fixed.
Remove toLowercase until the bug has been fixed.
2018-08-22 18:07:11 +02:00
filipnyquist
a318f4a114
Merge pull request #209 from LavRadis/patch-1
Clarifications about the LBRYian role - Update rolesetter.js
2018-07-30 15:16:48 +02:00
filipnyquist
ac78ac158b Added lowercase to wunderbot ranks. Fixes #160. 2018-07-30 15:09:45 +02:00
Lav Radis
ca746a9a0f
Update rolesetter.js
Just some clarifications about the LBRYian role based on question form a user.
2018-07-28 20:29:25 +02:00
filipnyquist
ece3da11f8 Fixed a problem with the lbrylinker not working on - chars. 2018-07-17 11:40:10 +02:00
Graydon
a586ae2444
Typo fixes and text improvements 2018-06-18 13:25:45 -05:00
YULIUS KURNIAWAN KRISTIANTO
86c986176d
Update rolesetter.js
removed unused role , because we doesnt have certified troll role and this not include on self assignment roles. and add note
2018-06-14 23:01:57 +07:00
Ralph
364e761630
Added checks for blank baserole in config 2018-04-17 16:52:35 -04:00
Ralph
328365a492
Removed Duplicate Code
During last Master Branch Merge, Lots of Dupe code was added for some reason. Thought it was all removed, but I guess I missed some.
2018-04-02 16:54:46 -04:00
Ralph
0d2d2dc270
Changed var to let 2018-04-02 16:34:55 -04:00
Ralph
ba9f3de3d6
Update rolesetter.js 2018-03-30 17:54:56 -04:00
Ralph
7a6a9bf748
Added Base Role Functionality 2018-03-30 17:51:54 -04:00
Niko Storni
f3dc3c0356
armonize prettier config with tipbot 2018-03-28 18:33:15 -04:00
Ralph
4a4962755e
Added Checks, Comments and Cleanup
I've added a check to see if a role exists in the Discord server. I've also Commented all of my checks, and I've run the precommit to normalize the code a bit.
2018-01-18 12:58:35 -05:00
MSFTserver
3783fc994b
fix usage as we specify it in description 2017-12-22 23:13:25 -08:00
MSFTserver
97b730f3ba
add command descriptions for !help 2017-12-22 23:11:31 -08:00
Niko Storni
d31f839039 formatted code 2017-12-20 00:28:28 +01:00
Ralph
60c2498147
Added another catch
I have added a parent if statement to check if someone runs the !addrole or !delrole command without a suffix.
2017-11-22 17:22:12 -05:00
Fillerino
6ce8aade5b Fixed formating and added prettier to pre-commit.
Fixed the formatting, added prettier to auto run on pre-commit.
2017-11-07 18:25:05 +01:00
Ralph
f88415edb9
Updates
Cleaned up the code, fixed the if function for checking if a role is "Allowed". Created an embed for the !roles command to show the allowed roles people can add.
2017-10-27 15:54:31 -04:00
Ralph
8a230f1639 Changed var to let 2017-10-27 09:53:11 -04:00
Ralph
a99d91b04c Create rolesetter.js
This module adds the ability to add/remove roles, as well as list the "allowed" Roles that the bot can add and remove.
2017-10-27 01:19:43 -04:00