esotericbot 0.0.1 → 0.0.2
raw patch · 3 files changed
+54/−50 lines, 3 files
Files
- doc/README +41/−41
- doc/esotericbot.conf +11/−7
- esotericbot.cabal +2/−2
doc/README view
@@ -1,18 +1,18 @@- £££££££££££££££££ &&&&&&&&&&&&& - £££££ ££ &&&&& &&&- £££ £ &&& &&- ££ && &&- £ & &&- ££ £ &&& &&- ££££ ££ &&&& &&&- £££££££££££££££ S O T E R I C &&&&&&&&&&&& O T - ££££ ££ &&&& &&&- ££ £ &&& &&- £ && &&- ££ & &&- £££ £ && &&- £££££ ££ &&&& &&&- £££££££££££££££££ &&&&&&&&&&&&&&+ $$$$$$$$$$$$$$$$$ &&&&&&&&&&&&& + $$$$$ $$ &&&&& &&&+ $$$ $ &&& &&+ $$ && &&+ $ & &&+ $$ $ &&& &&+ $$$$ $$ &&&& &&&+ $$$$$$$$$$$$$$$ S O T E R I C &&&&&&&&&&&& O T + $$$$ $$ &&&& &&&+ $$ $ &&& &&+ $ && &&+ $$ & &&+ $$$ $ && &&+ $$$$$ $$ &&&& &&&+ $$$$$$$$$$$$$$$$$ &&&&&&&&&&&&&& -------------------------------------------------------------------------------- READ ME FIRST@@ -195,18 +195,18 @@ These options control the esotericbot itself. -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ nick-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The 'nick' option is a prerequisite for connecting to an IRC server, obviously. 'nick' is a simple variable. Example: nick = "Joe_Bloggs_666" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ pass-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ The 'pass' option is not prerequisite for connecting to IRC, but is recommended. The most unfortunate thing is, it's stored as plaintext. @@ -214,9 +214,9 @@ Example: pass = "super_secret_lololol" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ server-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Again, unless you're SHODAN, you'll probably need this option to connect to a server. @@ -225,9 +225,9 @@ server = "irc.freenode.org" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ chans -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Specify the channels the bot initially connects to. @@ -237,9 +237,9 @@ chans = [ "#haskell" , "#esoteric" , "#egotistical_bot_authors" ] -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ user-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Give a numeric value representing a unix user ID. Specify this option to switch to this unix user after connecting. You're going to need this if you use the 'chroot' option. @@ -247,9 +247,9 @@ Example: user = "1000" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ chroot-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Specify a file system location. Esoteric bot will first cd to this location, then chroot in it. Incase you did not realize, you must be root to chroot.@@ -261,9 +261,9 @@ Example: chroot = "/home/esotericbot/execution_dir" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ mem_limit-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Given a integer, restrict the memory use of the esotericbot process to this many bytes. Uses posix resource management. @@ -271,9 +271,9 @@ mem_limit = "40000000" -- restrict memory usage to 40mb ( remember, this is counting both private memory and the memory used by various shared libraries ). -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ time_limit-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ `time_limit` restricts the time ( in seconds ) for which a child process can run. After this time, the child will recieve SIG_TERM. @@ -281,9 +281,9 @@ time_limit = "5" -- After a plugin has been launched, send it SIG_TERM after 5 seconds. -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ hard_time_limit-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ `hard_time_limit` is like time_limit, but sends SIG_KILL, rather than SIG_TIME. @@ -291,9 +291,9 @@ hard_time_limit = "10" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ children_mem_limit -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Given a number in bytes `children_mem_limit` restricts the memory use of all child processes together. @@ -301,9 +301,9 @@ chilren_mem_limit = "30000000" -- The memory of all child processes together shall not exceed 30mb -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ output_limit-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Given an integer, crop esotericbot's responses to IRC commands to this length. @@ -313,9 +313,9 @@ &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&PLUGIN OPTIONS&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ default_child_mem_limit-££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ Given an integer, restrict each child's memory usage to this number of bytes. This default limit can be over-ridden by the mem_limit variable within the lang variable. See the lang option.@@ -323,9 +323,9 @@ Example: default_child_mem_limit = "20000000" -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ plugin -££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££££+$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ `plugin` is where you define a plugin.
doc/esotericbot.conf view
@@ -29,7 +29,7 @@ children_mem_limit = "60000000" -- The default maximum memory for a plugin-default_child_mem_limit = "20000000"+default_child_mem_limit = "10000000" -- The maximum characters to be output by each plugin output_limit = "100"@@ -55,6 +55,16 @@ } plugin {+ -- specify a custom memory limit for this particular plugin+ mem_limit = "20000000"+ cmd = "./sk"+ prefix = "sk"+ name = "SK combinator calculus"+ input_sep = "///"+}+++plugin { cmd = "./whirl" prefix = "wh" name = "whirl"@@ -68,12 +78,6 @@ input_sep = "an improbable string to occur in a malbolge program" } -plugin {- cmd = "./sk"- prefix = "sk"- name = "SK combinator calculus"- input_sep = "///"-} plugin { cmd = "./unlambda"
esotericbot.cabal view
@@ -1,5 +1,5 @@ Name: esotericbot-Version: 0.0.1+Version: 0.0.2 License: BSD3 License-File: License Author: John Morrice@@ -57,7 +57,7 @@ Build-type: Custom -Homepage: http://www.killersmurf.com/esotericbot+Homepage: http://www.killersmurf.com/projects/esotericbot Build-Depends: base , bytestring , mtl , attoparsec , network , stream-fusion , stm , containers==0.2.0.0 , time , tuple , unix , directory Cabal-Version: >= 1.6