Skip to content
VADemon edited this page Jun 24, 2020 · 10 revisions

Misc > Chatbot is a chat spam bot.

.chatbot enabled <0/1> - when enabled accept and queue messages to SpamService

.chatbot max_input_length <0-256> - Maximum chat input length allowed (Default: 16)

.chatbot resetSequential <0/1> - for sequential spam lists, restart from first line when Chatbot or spamlist is toggled. Otherwise continue where it left off. (Default: false) (Example)

.chatbot spam ...

       import <filename.json/.txt> - import a txt or json file

       list - spam list entries

       export <filename.json/.txt> - export spam list to file (for sharing etc)

       remove <name> - deletes a list. There's still a msg in queue, see SpamService

       add <name> - create a new empty spam list

       add -? - for help message

       add <name> [options] has following options:

--enabled 0/1 - enables this list

--trigger spam/reply/reply_with_input/player_connect/player_disconnect - how this list is triggered

--keyword <trg word> - trigger word for reply/reply_with_input modes

--type <Sequential/Random> - in which order to pick messages

--delay <ms> - delay for messages of this list (not global spammer delay)

Adding entries

If you do not have a spam list, create one: .chatbot spam add mytest

Then you can add messages to this list with: .chatbot spam add mytest "Test text" (there is no way to remove messages without export+import or manually editing ChatBot config files)

To edit a spam list's settings: .chatbot spam add mytest [settings] e.g.: .chatbot spam add mytest --delay 10000

Example usage

  • .chatbot spam add test Will add a new entry called "test"
  • .chatbot spam add test "Test text" Will append "Test text" to the test entry message list.
  • .chatbot spam add test --type SEQUENTIAL Will set the spam type to sequential. (Use .spambot add -? to see acceptable arguments)
  • .chatbot spam add test --keyword !test Will set the trigger keyword to "!test"
  • .chatbot spam add test --trigger REPLY Will set the trigger mode to "REPLY" (Use .spambot add -? to see acceptable arguments)
  • .chatbot spam add test --enabled true Will enable the spam entry
  • .chatbot spam import test import_test.txt Will import messages from the file "import_test.txt" inside .minecraft/forgehax
  • .chatbot spam export test export_test.txt Will export messages from the entry into a text file under .minecraft/forgehax.
  • .chatbot spam remove test Will remove the test entry and all its contents

Import/Export

Directory .minecraft/forgehax/

.json files contain the complete spam list and options

.txt files contain only messages, one per line

.chatbot spam export mytest mytest-spammer.txt

Configuring SpamService

SpamService is the part that is actually responsible for sending out messages.

.spamservice delay <5000> - minimum delay between sent messages in ms

.spamservice reset - reset current queue list and countdown. Useful when you disable/re-enable Chatbot. (Note: .chatbot resetSequential true does this automatically now.

Clone this wiki locally