From 10faacaaa41a9bb4ead193932219e4c375ed5922 Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Sat, 16 Oct 2021 11:15:41 -0400 Subject: [PATCH] Destroyed Bait (markdown) --- Bait.md | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 Bait.md diff --git a/Bait.md b/Bait.md deleted file mode 100644 index 789bc03..0000000 --- a/Bait.md +++ /dev/null @@ -1,29 +0,0 @@ -Bait is the event emitter for Hilbish. Why name it bait? Because it throws hooks that you can catch. -(emits events that you can listen to) and because why not, fun naming is fun. -This is what you will use if you want to listen in on hooks to know when certain things have happened, like when you've changed directory, a command has failed, etc. -To require: -```lua -local bait = require 'bait' -``` - -# Functions -### Bait.throw(hookname, args) - -Throws (emits) a new hook to catch. -`args` is the arguments that will be provided to the `hookfunc` in `Bait.catch` - -#### Example -```lua -bait.throw('hello', 'world!') -``` - -### Bait.catch(hookname, hookfunc) - -Binds a new hook named `hookname` to `hookfunc`. - -#### Example -```lua -bait.catch('hello', function(name) - print('Hello ' .. name .. '!') -end) -``` \ No newline at end of file