grilledham
9c134907ce
Add 'donator' to chat triggers. ( #1313 )
2022-04-13 19:47:06 +01:00
Jayefuu
f9e5752dd0
Removed old comments
2021-01-23 17:38:34 +00:00
Jayefuu
75df3186b8
Update chat_triggers.lua
...
- Changed font size and line_to_live slightly on feedback from nibu and diffie
- Added check for if player is dead. Assume that if they're dead they're probably not distracted and will pay attention to chat.
- Removed us of game.get player and replaced with player.name
2021-01-21 14:46:18 +00:00
Jayefuu
476b07a2ab
Fixed locale issues
2021-01-20 08:48:08 +00:00
Jayefuu
c88520cccb
Update chat_triggers.lua
2021-01-19 13:37:00 +00:00
Jayefuu
5a585e38d9
Update chat_triggers.lua
2021-01-19 13:36:25 +00:00
grilledham
a0e178fc75
removed unsed Game variable
2019-05-16 12:11:01 +01:00
grilledham
880c0366d1
Game.get_player_by_index -> game.get_player
2019-05-16 11:10:56 +01:00
plague006
3268ec550e
Change print strings to localised strings
2019-03-03 17:22:00 -05:00
Matthew
5dd9ce9f90
Remove math and table as globals. ( #647 )
...
* Remove math and table as globals.
Create exceptions for table.lua and math.lua to modify respective globals and add returns for respective globals.
* Fix lint errors from table and math
2019-01-15 14:27:48 +01:00
plague006
494648f35c
Change custom colors to presets
2018-12-29 12:39:20 -05:00
Lynn
0fbfe49b2f
AlienEvolutionProgress to utils and uses prototype data
2018-12-09 19:18:16 +01:00
Lynn
bbfcdd4629
Added a basic RedMew configuration setup ( #502 )
...
* Added a basic RedMew configuration setup
2018-12-06 12:18:52 +01:00
Matthew Heguy
c7201e119b
Rename utils and fix requires
2018-11-27 17:08:26 -05:00
SimonFlapse
d971075da0
admin mentions now require pre, or postfix
2018-11-27 20:12:50 +01:00
Matthew Heguy
c8507bddb9
Use string.format
2018-11-26 19:23:12 -05:00
Matthew Heguy
17af2498f8
Have get_player return nil if no index/player
2018-11-26 10:50:06 -05:00
Matthew Heguy
de87998299
Break chat_trigger functions apart
2018-11-26 01:52:43 -05:00
plague006
af9fe138fb
Fix null ref (event.player_index nil if server)
2018-11-22 07:17:07 -05:00
Matthew
c9369c3d14
Features cleanup ( #414 )
...
* Fix scoping, var names, unused functions, etc.
* Autoformat
2018-11-20 11:46:19 +01:00
SimonFlapse
ae46cc447b
Made mentions case insensitive
2018-11-18 22:41:24 +01:00
SimonFlapse
5c5c59c396
Added @ to mention triggers also allowed the prefix as a postfix
...
Avaliable triggers now:
admin moderator @SimonFlapse #SimonFlapse SimonFlapse@ SimonFlapse#
(@SimonFlapse might trigger discord)
2018-11-18 13:26:15 +01:00
SimonFlapse
ed46ed2b5b
Changed how the player not found works for moderators and admins
2018-11-17 14:28:21 +01:00
SimonFlapse
c9b4e596cc
Removed prefix for admin and moderator
2018-11-17 14:22:51 +01:00
SimonFlapse
0541682b1a
Merge branch 'develop' of https://github.com/SimonFlapse/RedMew into Chat-Mention-Fix2
2018-11-17 13:47:33 +01:00
SimonFlapse
d89bac1510
Removed prefix for mentions
...
Add a prefix to avoid mention
2018-11-17 13:46:23 +01:00
Matthew
b24801a8ec
Extend tables library, split on_create and hodor messages from functions ( #357 )
...
* Add table.get_random and table.get_random_weighted
* Rewrite and randomize the messages from on_create
* Split hodor messages resource from function
* Return variable directly instead of adding an extra step
* Change to luadoc
2018-11-17 12:56:03 +01:00
SimonFlapse
dc1cdba17a
Allowing a single character after a mention
...
%S is the opposite of %s (space characters) and the plus sign combines all the characters. Names like der-dave.com should work.
Tested expression using: https://regexr.com/
2018-11-17 11:10:11 +01:00
SimonFlapse
98d8a1ae6f
Fixed chat mentions for MP
2018-11-16 21:32:38 +01:00
SimonFlapse
3e6b0c32c4
Unnested if statement
2018-11-15 16:54:16 +01:00
SimonFlapse
f17f4ea312
Added admin and moderator mentions
2018-11-15 16:46:04 +01:00
SimonFlapse
7a0a945da8
Changed trigger to #, preventing discord mentions
2018-11-15 16:26:40 +01:00
SimonFlapse
948ed4ab1f
Minor text changes and _DEBUG options
2018-11-15 16:03:46 +01:00
SimonFlapse
560cf2575c
Added logic for detecting a @mention in chat
2018-11-15 15:06:03 +01:00
plague006
9c9a9b22f6
Use trigger as table key
2018-11-11 12:12:38 -05:00
plague006
fed64c47c6
Put responses into table
2018-11-11 11:59:04 -05:00
plague006
ec9819e723
Newline to eof
2018-11-11 11:08:05 -05:00
plague006
d45a486cde
Split chat triggers from control
2018-11-10 23:00:33 -05:00