Skip to content

Scripts

TaijaQ edited this page May 4, 2016 · 2 revisions

Scripts

My scripts

Commands

~ List files

listfiles.coffee

Counts all files and snippets uploaded to Slack and lists them in a neat form, with titles, filenames and character and line counts. Also adds up the total line count.

hubot List files

Using similar API calls, a lot of other information can be queried and utilized; the script allows for easy extension.

Responses

~ Annoyance

annoyance.coffee

When annoyed, Nitbit will stop responding to most things, or react differently. Right now, Nitbit is annoyed by the repetition of old memes, but it could be many things.

hubot the cake is a lie
hubot I like turtles

To remove annoyance or warnings, apologize:

hubot (I'm|I am) (very|really) sorry

Querying annoyance state, which also annoys Nitbit eventually if repeated:

hubot annoyed|annoyance

~ Names

mynameis.coffee

Responds to names it knows or doesn't know. Memorizes its' masters' name.

hubot My name is <name>

Learning

~ Cursing

cursing.coffee

Nitbit can memorize and track insults you hurl at it. Currently it doesn't curse back very creatively, but that's the next step. The same basic function can be used for general vocabularity, but this was an easy way to test that.

To start or stop the curse mode:

hubot curseout|curseoff|cursebattle on|off

While in that mode, calling hubot names causes it to add those insults to memory and keep count of the times it has been said.

hubot you are (a|an) <insult>

Lists all known insults and their counts:

hubot list insults|curses|curse words

Returns how many times a certain word has been said, or if no word is entered, the amount of different insults in memory:

hubot insult|curse (<insult>) count

External scripts

Sentimental adapter

Hubot-plusplus

Clone this wiki locally