Pail
  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.8
  2. 1.9
  3. 1.10
  4. 1.11
Pail
Based on XKCD's IRC Bot: Bucket
By TheJayCool

What is Pail?
Pail is a fully customizable chat bot, able of adding and deleting responses in-game.

Features
  • Adding/Deleting responses, commands and actions
  • Admin System
  • Targetters (called Variables)
  • Lock/Unlock responses
  • Ignore/Unignore players
  • Inventory System
Installation
Download and move into your scripts folder
Open up the script and change the following lines to your liking
code_language.skript:
     admin: TheJayCool
     # Replace this with your name, to add multiple admins, use the add admin(scroll down) trigger command
     adminsOnly: true
     # Only admins can add/delete triggers

     varName: pail
     # Variable Name for player and pail inventory storage
     fileDir: plugins/Skript/data/pail/pailstorage.yml
     # Location of where replies, triggers, etc. get stored.

     name: Pail
     cancelEventOnAdminUsage: false
     # Cancels the event when using the pail admin chat trigger
Reload the script.


Requires Skellett and SkUtilities


Usage
Adding a reply:
'Pail, triggerMessage <reply> responseMessage'
if a player writes "triggerMessage" in chat, Pail will respond with "responseMessage"
e.g. 'Pail, Hello there <reply> Hi!'
<TheJayCool> Hello there
Pail: Hi!

You can add multiple responses to a trigger message.
CASE SENSITIVE

Adding an action:
'Pail, triggerMessage <reply> responseMessage'
if a player writes "triggerMessage" in chat, Pail will respond with "responseMessage" in a /me format
e.g. 'Pail, Kill someone <reply> kills TheJayCool'
<TheJayCool> Kill someone
* Pail kills TheJayCool

You can add multiple responses to a trigger message.
CASE SENSITIVE

Adding a command:
'Pail, triggerMessage <command> command'
if a player writes "triggerMessage" in chat, the console will run the command "command".
e.g. 'Pail, Kill me <command> /kill $who'

This is very dangerous as it can be used as a permission bypass, Be careful.

NON-CASE SENSITIVE

Deleting a reply, action or command:
'Pail, triggerMessage <delete> responseMessage'
will delete "responseMessage" from the "triggerMessage" trigger. if "responseMessage" is not included
it will delete all responses. if "responseMessage" contains a slash(/) it will remove the command
from the reply.
e.g. 'Pail, Hello there <delete> Hi!'
Deletes "Hi!" from trigger "Hello there" but keeps any other responses
'Pail, Hello there <delete>'
Deletes every response from the trigger.

CASE SENSITIVE


Locking/Unlocking triggers:
'Pail, lock/unlock triggerMessage'
this will make triggerMessage un-editable meaning no one including admins can add or delete responses/commands
e.g. 'Pail, lock Hello there'
'Pail, unlock Hello there'

CASE SENSITIVE

Ignoring/Unignoring players:
'Pail, ignore/unignore player'
ignores the player making it unable to trigger any response.
e.g. 'Pail, ignore TheJayCool'
'Pail, unignore TheJayCool'

CASE SENSITIVE

Adding/Removing Admins:
'Pail, admin add/remove player'
adds/removes a player from the admin list.
e.g. 'Pail, admin add TheJayCool'
e.g. 'Pail, admin remove TheJayCool'

CASE SENSITIVE

Adding items into Pail's inventory:
'* gives item to Pail'
'/me gives item to Pail'
adds an item to Pail's inventory
e.g. '* gives a gun to Pail'
'/me gives a gun to Pail'

Items in the inventory get deleted every 5 minutes

Variables:
'$player'
gets a random online player
'$who'
gets the player who triggered the response
'$digit'
gets an integer between 1 and 9
'$nonzero'
gets an integer between 0 and 9
'$item'
gets an item from Pail's inventory and removes it
'$inventory'
gets all items inside Pail's inventory
'$someone'
gets a random online player

can be used when adding/deleting responses, actions and commands and when adding
items into Pail's inventory

Miscellanious Commands:
'Pail, list all/admins/triggerMessage'
lists all triggers, all admins or all responses of a trigger
'Pail, count triggerMessage'
gives the total of all responses to "triggerMessage"
'Pail, inventory'
sends a list of Pail's inventory


Author
TheJayCool
Downloads
558
Views
558
First release
Last update
Rating
0.00 star(s) 0 ratings