Commit graph

31 commits

Author SHA1 Message Date
ORelio
72bd485e67 Add basic location handling
- Retrieve player location from the server
- Send back player location from the server
- Requires that a specific setting is enabled
- Should allow items to be picked up by the player
- May also trigger some anti chead plugins
2015-11-27 17:16:37 +01:00
ORelio
b3c9a20f16 Fix AutoRespond not handling "other" message type
Bug report by ibspa
2015-10-13 00:31:24 +02:00
ORelio
3e2622fbb7 Various C# Script improvements
Move handling code in a separate file
Add caching ability for low-power devices (rpi..)
Use a distinct API with MCC.MethodName()
Stop script execution only on specific API calls
2015-08-23 18:51:29 +02:00
ORelio
de4322458a Add 'other' messages support in AutoRespond 2015-08-02 12:20:51 +02:00
ORelio
f076e1f512 Add argument passing for C# scripts
script files with spaces in filename will need double quotes when
calling them eg /script "my script.txt" instead of /script my script.txt
2015-06-25 12:12:59 +02:00
ORelio
e29b4ee545 Add support for C# script extensions
- Allow defining function for use into the script
- Allow defining a ChatBot for loading it into MCC
- Improve sample script and add more examples
- Todo add new documentation into the readme file
2015-06-21 18:45:43 +02:00
ORelio
a6b3bf0481 AutoRespond tests and fixes
- Automatically add [BotName] tags to log lines
- Fix case handling and actionPrivate used for public messages
- Add a sample file for basic and regex matches
2015-06-21 16:40:13 +02:00
ORelio
3ce91188c7 Add support for C# scripts in scripting bot
- Now scripts can also be written in C#
- C# scripts can access ChatBot API
- Add more methods in ChatBot API
- Add an example of C# script file
- Coding style fixes: method names ucfirst
2015-06-20 22:58:18 +02:00
ORelio
0029561135 AutoRespond improvements
- Add improvements from pull request #76
- Add support for regexes instead of simple matches
- Add support for internal MCC commands eg script
- Add support for flexible INI file containing matches

TODO: Testing, sample INI file, proper documentation
2015-06-11 23:37:20 +02:00
ORelio
53156bdf98 Normalize AutoRespond bot
Move FromFile method from bots to ChatBot class
Rename file and class, removing space and underscore.
2015-05-26 19:17:37 +02:00
Bancey
43fa3fb4b4 Auto Respond Bot
This bot allows users to add a bot that can detect and respond to
certain text.

The bot can be enabled/disabled via the ini file. (disabled by default)
The bot uses 2 files to let the user set what to pickup and what to
respond.
2015-05-19 15:36:20 +01:00
ORelio
6261e7adb7 More startup error handling
- Pass minecraft login failure message to AutoRelog bot (suggestion by
doranchak)
- Fix NullReferenceException in McTcpClient caused by SocketException in
ProxyHandler
- Refactor error handling code in Program.InitializeClient()
- More detailed error messages on network errors.
2015-04-20 17:26:16 +02:00
ORelio
82c95be611 Fix console background color
- Save & Restore background color when needed
- Remove useless color modifications
- Fix issue #71
2015-03-25 19:45:50 +01:00
ORelio
57024a7b26 Fix crash when log file is in same folder
Fix #64 by adding an additional check
Bug report by JamieSinn (thanks!)
2015-02-26 12:19:46 +01:00
ORelio
ee406b233e Use Trim instead of space deletion 2015-01-27 20:23:59 +01:00
medxo
bdbc408279 Update RemoteControl.cs 2015-01-22 11:20:46 +00:00
ORelio
dd001e3519 Auto-Tpaccept from everyone
Disabled by default.
Suggested by medxo
2015-01-02 22:10:12 +01:00
ORelio
1499f8cbfc Refactor Alerts Bot + Fix crash
More efficient, succint and readable code with less bugs!
Fixed crash when displaying alert under certain conditions.
2014-12-16 19:17:06 +01:00
ORelio
2a8a6fadd3 Update alerts file loading
Fix issue with blank lines. Avoid duplicate entries.
Issue fixed with an alerts file provided by TRTrident
2014-08-29 12:04:52 +02:00
ORelio
dbefe16831 Add a setting for disabling auto tpaccept
For RemoteControl bot. Suggestion by TorchRJ_
2014-08-28 15:12:58 +02:00
ORelio
dea2862018 Fix "log" in scripts displaying the comment twice
Bug report by TorchRJ_
2014-08-27 17:22:27 +02:00
ORelio
5cace4e7ff ScriptSheduler improvments
- Add triggerOnInterval feature (every X seconds)
- Fix triggerOnTime triggering scripts only one time
- Update sample task list file
2014-07-29 16:52:23 +02:00
ORelio
162a1414bf Add ChatBot logging to file and 'log' command
- log <text> will print '[BOT] text' to the console
- logged [BOT] lines can be written to a logfile
- chatbotlogfile INI setting is used to set the log file
2014-07-20 12:02:17 +02:00
ORelio
cfb313fa01 Several fixes
Fix Alerts bot not displaying several occurences in a row
Fix Script bot not displaying in console what it is performing
Fix IOException not caught when connection is lost
2014-07-01 14:10:29 +02:00
ORelio
608eb8059c Unix slashes in file path when using Mono
Bug report by MousePak
2014-06-27 13:26:27 +02:00
ORelio
c4c5e2efd9 Chatlog, Message sending fixes
- Fix ChatLog not creating the folder containing log file
- Fix chat prompt not sending regular text messages
2014-06-16 14:23:56 +02:00
ORelio
87d4687394 Add set varname=value MCC command
- Allow to use vars declared in scripts or directly by the user
- Commands my now use %variable% as well
- Moved "help" command from RemoteControl to inner MCC command manager
- The only special command is "wait", which is only available in scripts
Todo: Solve ambiguity between MCC help and Server help commands
Note: Auto accept tpa suggested by MousePak
Note: Manually choosing MC version suggested by ZizzyDizzyMC
2014-06-14 18:48:43 +02:00
ORelio
f0b071ddea Remote Control : Auto accept tpa and tpahere
- Added Essentials teleportation request in bot api
- Used the api in remote control to auto accept
2014-06-14 13:51:30 +02:00
ORelio
9456e82923 Handle all internal MCC commands in one place
- MCC internal commands for command prompt, remote control and scripts
are handled in one place, thus it's no more needed to add them in 3
different places.
- "exit" command in scripts is not equivalent to "/quit"
- removed "disconnect" command in scripts /!\
- bots can now easily perform internal MCC commands.
2014-06-14 13:20:15 +02:00
ORelio
283074bb63 Store server IP and server port in distinct vars
- Change "replaceVars" to "expandVars" (more explicit)
- Store server IP and server port in distinct vars in Settings class
- Add setServerIP setter in Settings which automatically split a
host:port string
- Add %serverip% variable which use the new ServerPort setting
- Fix "text%incompletevarnameatstringend" strings
2014-06-13 16:50:55 +02:00
ORelio
d2ec2f48b7 App refactoring almost done
- Created specific namespaces and folders for each app brick
- Added proxy support using Starksoft's Biko Library
- App bricks: Main, ChatBots, Crypto, Protocol, Proxy
- Each class is now in its own file (Aes streams, chatbots)
- Used "Bridge" design pattern for Crypto, Protocol, Proxy
- Added back support for Minecraft 1.4.6 to 1.6.4 (MCC 1.6.2)
- Need to fully re-test everything and fix bugs
- To Fix : Server pinging is slow on SpigotMC
- To Do : Add Minecraft 1.2.5 (MCC 1.3) and maybe 1.3 to 1.4.5
2014-05-31 01:59:03 +02:00