Sueta

HanaBot Chat

1.5

BotChat plugin works with Lua language system.

·Plugin

Overview Plugin
Plugin has Commands
- /hana luafile : list file
- /hana load [locate file] : test file lua
- /hana saveconfig : saveconfig
- /hana reload : reload config
- /hana reload system : reload system
Permission
- hana.use* : open use commands
- hana.luafile
- hana.load
- hana.saveconfig
- hana.reload
Explain the basics
When starting work will create folder directory and export file luaj to lib folder and download Library Hana to system folder but not export file AddonMoney.jar, you need to do export AddonMoney.jar to folder lib by yourself or Download in below

System hana main loading is ini.lua in folder system you can edit it and you can add file lua then edit and edit ini.lua for load your file or add library to system
What is Lua
Lua is a powerful and fast programming language that is easy to learn and use and to embed into your application. Lua is designed to be a lightweight embeddable scripting language. It is used for all sorts of applications, from games to web applications and image processing.
How to start?
All you need to know is the basic language of Lua and hana API at my make for you know what can her do.
Just this, you can start make your system by yourself.

But i create Library Default in my github in frist time plugin will download auto to Folder Plugin.

this is AddonMoney.jar <-- click to download
My code https://github.com/HearthunterPro/HanaBot
Report Bug or Require https://github.com/HearthunterPro/HanaBot/issues
Small Wiki http://hanabotchat.gearhostpreview.com/

FEATURES MY LIBRARY
a sample

My library require AddonMoney.jar please check your cmd have AddonMoney? before use Hana

1. she can ban bad word.

you can edit in system\\Library\\ChatBanEvent.lua

2. she can anti spam chat
5 Chat in 4 sec
you can edit in system\\Library\\AntiSpamChatEvent.lua

3. She can respond Freely

you can edit in data\\datachat.txt

1. first in quotation marks is check message that the player has send to hana
2. number is check data int same
3. number is type
Type:
- 0 is check the previous numbers whether or not they match.
- 1 is check the previous numbers >= or not
- 2 is check the previous numbers <= or not

4. > is middle
5. quotation marks is message hana send to player
6. number is sleep time
7. number is set data
final is function

you can add or edit function in system\\Library\\ChatCommon.lua

4. She can't talk to many people except for asking one question, not calling her.
if player calling to her then have player2 calling her.
her will send to chat : please wait player2, I talking with player

5. she can find log in server
Library 1.3
https://i.imgur.com/taZlFbl.gifv

6. she can show item in hand
Library 1.3

7. she can Calculate numbers [May be in the future]
8. she can ban chat player promote server other [May be in the future]

.....
You can use end chat for End the conversation with her

ALL LIBRARY you can edit or you can make library yourself

NOW THIS
Have AddonPlaceholderAPI <- click to download

how to use AddonPlaceholderAPI
insert into Folder lib in folder plugin Hanabot run server find Enable AddonPlaceholderAPI

how to use in LUA
========================================================
local placeholder = require("placeholder")
local msg = placeholder.setPlaceholders("PlayerName", "Message")

========================================================

Similar projects

Plugin →