Illogicopedia:Sockbot

From Illogicopedia
Jump to navigation Jump to search

Socky is an IRC bot coded by SilentPenguin in perl, regardless of how much perl sucks.

[01:15:02]	<SilentPenguin>	socky is getting annoying since t3po had his way with him, im tempted to add him to my ignore list
[01:15:04]	<Socky>		No one can ignore Socky! Socky is too IRRITATING! MwuAHAHAHA!
[01:15:25]	<SilentPenguin>	I'm going to shoot whoever added that
[16:00:24]	<SilentPenguin>	brb
[16:00:25]	<Socky>		Would sir like his pornography to go?
[16:00:58]	<Badger>	the sheer cheek of it
[14:17:27]	<SilentPenguin>	haha, yeah, sweet sweet irony
[14:17:28]	<Socky>		irony is used to make clothes un-creasey
[14:17:35]	<SilentPenguin>	shut up
[14:17:36]	<Socky>		Sure thing SilentPenguin, when you stop being retarded, maybe.

Rules[edit | edit source]

  • You shall hang in the docks before dawn for making Socky stupid, the poor guy is 77 lines of perl, he needs a fighting chance :P.
  • Likewise making Socky an asshat is also outlawed
  • Do NOT delete factoids that you did not set UNLESS they are about you or you are an admin.
  • You may give Socky botsnacks but he may not take them.

Users who abuse socky's blind obedience will be kicked, banned or be added to socky's ignore list.

Recent changes[edit | edit source]

  • socky now searches for EXACT phrases, unless you provide the ! modifier before the search term's square brackets. Please note that the ! modifier uses EXACT SUB STRING phrasing within a string, ie the phrase in brackets [] when you set must be entirely within the message mentioned by a user. The !! modifier provides KEYWORD matching, ie, your phrase in [] may be contained anywhere within a users comment, and doesn't need to be in that order, or even contain all the words provided.
  • Searching socky for responses.
  • meta keywords for factoid adding of user join, quit and kicking.
  • socky now correctly searches with the [show] command for factoids containing numbers: "t3canolis" returns "t3canolis" instead of factoid number "3"

Using Socky[edit | edit source]

The easiest way to use socky is to say stuff normally and hope he responds with some form of witticism.

Simply adding a response[edit | edit source]

To add a response, say:

Socky, [Exact response] = [What socky should say]

Example:

[00:35:19]	<SilentPenguin>	Socky, [socky agrees] = [HELL YEAH!]
[00:35:18]	<Socky>		SilentPenguin: Ok

Extra arguments[edit | edit source]

Oh Romeo where for art thou Romeo[edit | edit source]

To use a name simply introduce the keyword $who into the response. Example:

[00:39:49]	<SilentPenguin>	Socky, [botsnack] = [I ain't eating none of your botsnacks, $who!]
[00:39:51]	<Socky>		SilentPenguin: Ok

Actions speak louder than words[edit | edit source]

Suppose Socky's response is more suited to an action, this would be set by doing the same as above but using an action rather than speaking it:

/me Socky, [Keywords for socky to look for (separated with spaces)] = [What socky should say]

Example:

[00:42:47]	SilentPenguin	Socky, [botsnack] = [looks at $who funny]
[00:42:48]	Socky		Ok

Stabbing in the dark[edit | edit source]

Socky can search based on a string contained within a phrase. This is set using:

socky, ![phrase] = [What socky should say]

An entry ![no pants] for example will match "somebody is wearing no pants in here, I can smell it." but not "dave wanted to buy pants, so I said no"

Vague stabbing in the dark[edit | edit source]

Socky can also search keywords, looking for a best match rather than looking for exact phrasings. in this case, what you give Socky will be the exact phrasing socky needs before it will use the result, this means if your response is specific, you can use this to prevent it being used in incorrectly. To perform this, simply add an exclamation mark before the keywords.

Socky, !![Keywords for socky to look for (separated with spaces)] = [What socky should say]
  *Socky uses the keywords you give it to second guess which phrase is the most relevant, working as a search engine on anything said in the channel. Once something has been said, it will expire for a set time period and cannot be used. Socky does not recognise colour coding and will not function properly if program it to reply with coloured text.
  • Socky will NOT use punctuation as characters in keywords ie !![^_^] will never work.  

Talk to the hand cus the socky ain't listening[edit | edit source]

Adding an exclamation mark to the end of the keywords section means socky will only respond when he is directly addressed.

Socky, [Keywords for socky to look for (separated with spaces)]! = [What socky should say]

Meta Control[edit | edit source]

Socky's control function follows a similar structure as the editing command:

Socky, [attribute] > [target]

Socky has several meta attributes:

  • [show] > [id] this shows the info for the id provided in the same form as setting it.
  • [show] > [<phrase>] this shows every entry for <phrase>, this only works for anything that isnt purely a number (socky thinks you mean an id) and for the id things below.
  • [delete] > [id] this deletes an attribute based on its id from allowing socky to speak it. A deleted factoid will show in the Show command with an exclamation mark before the ID. ![delete] will undelete. Deleting in Socky isn't permanent.
  • [edit] > [id] >> ![keywords]! : [users] = [response] to allows changes within previously set commands using the same syntax as above.
  • $Last, $LSay and $LSet can be used interchangably with id's to generate the last interaction (set or said), last said, and last set id's. It is advised not to use these for editing and deleting commands, since socky does not allocate these on a client/channel basis.
  • $join, $quit and $kick are also available as trigger words which represent a user joining, parting or being kicked from the channel, ie: [$kick] = [HAHAHA, what a newb]

To be added[edit | edit source]

  • [ignore] > [hostmark] ignore any messages from host.
  • [protect] > [id] a command to protect the id from edits from anyone apart from admins.