3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-27 21:22:38 +01:00
Commit Graph

231 Commits

Author SHA1 Message Date
Luke Slater
19c3497f11 reload default strings in updateModules 2012-12-11 20:47:50 +00:00
Luke Slater
1f2c7fa835 added try/catch for no usage/string info, moved module load error back to default stringspace 2012-12-11 20:23:31 +00:00
Luke Slater
cae8a1fc7d loaded strings and usage from the modules themselves in reloadModules. some other smaller changes. fixed the syntax of the usage json. careful though this dbot init may delete your database. 2012-12-11 20:06:29 +00:00
Sam Nicholls
7ab477b448 Nobody loves autoshorten. Removed poll from default module list. 2012-12-06 19:37:39 +00:00
Sam Nicholls
78837f9da1 Added url string 2012-12-06 19:33:25 +00:00
Sam Nicholls
757344d580 Attempt to fix Issue #54 2012-12-05 19:05:19 +00:00
Sam Clements
09b0c3daa0 Submodules, f--k yeah! 2012-07-17 14:10:58 +01:00
Luke Slater
17bbccbe98 move poll whatsit 2012-06-22 19:27:59 +01:00
Luke Slater
54dc7f2236 Changed commands to property rather than object to be returned by onLoad functionality 2012-06-05 00:17:51 +01:00
Luke Slater
40ddb682fa fix channel joins on multi server 2012-05-25 21:36:13 +01:00
Luke Slater
1e23e18807 debugon server join 2012-05-25 21:15:06 +01:00
Luke Slater
4a1d5aa083 webPort default 2012-05-25 21:00:38 +01:00
Luke Slater
5677cad1fa Use jsbot ignore instead of having it build into the modules 2012-05-25 16:45:47 +01:00
Luke Slater
d6b56db06e Fix puns by faking an event and calling it straight in jsbot 2012-05-25 16:03:36 +01:00
Luke Slater
464e0f11e3 Converted admin.js. Added a few more translations. Removed modehate functionality. Changed some stuff in run.js to facilitate changes. 2012-05-23 19:38:10 +01:00
Luke Slater
55dec12324 Fixed output on module load, added a new translation for search results. 2012-05-23 18:02:02 +01:00
Luke Slater
1f02e29a85 Made DBot load listeners in The New Way. Massively simplified Command module, converted to new format. Converted JS module to new format. All working. Moved ~ignore functionality away for now as it needs to be combined with jsbot. 2012-05-19 19:14:07 +01:00
Luke Slater
ec34a861f4 Now connects! Woo! 2012-05-19 17:47:35 +01:00
Luke Slater
43147af804 Merge branch 'master' of github.com:reality/depressionbot into jsbot0.2compat 2012-05-19 17:39:18 +01:00
Luke Slater
42c4871a16 Switched key of strings object so that there's only one object and it's easier to read and therefore translate. Created 't' function to translate strings, changed quotes module to this format. Need to change the others. Will now fall back to English if translation in given language is not available. 2012-05-19 16:33:31 +01:00
Luke Slater
ccc36d67a7 Transformed config file to accept multiple servers and changed dbot constructors to reflect this 2012-04-20 14:14:28 +01:00
Luke Slater
b2ede3f5d5 print the error to console if it fails to load a module 2012-04-19 12:14:08 +01:00
Luke Slater
0062dde196 Command map changed round the other way. Modules have name and ignorable properties. Ignore and unignore commands, which currently effect actual commands but not listeners yet. 2012-04-15 21:43:02 +01:00
Luke Slater
b232103178 Create command map describing which commands belong to which module. 2012-04-15 20:46:42 +01:00
Luke Slater
0ecca6ae98 change module loading so there's only one loop through the moduels 2012-04-15 20:42:23 +01:00
Luke Slater
c76428b1f2 TODO note and autoshorten in automatic loading modules 2012-04-14 06:41:53 +01:00
Psychedelic Squid
0cae8b3baa Use String.prototype.format() <https://gist.github.com/1153608> to make the translation strings more amenable to variations in word order. 2012-03-26 01:32:41 +00:00
Luke Slater
3e793d43d5 Loads strings properly. Some changes to the category. Mostly working now, just needs finished Spanish translations and some further testing because I've probably mistyped some category names. 2012-03-25 00:08:32 +00:00
Luke Slater
95eaa7f948 some additions to the strings file and the entire program should now be using the string entries 2012-03-24 23:48:28 +00:00
Luke Slater
653264e46a comment formatting 2012-03-15 18:08:40 +00:00
Psychedelic Squid
155a2f2f84 interpolatedQuote fully transplanted into quotes.js, should reduce pesky run.js reloading to near-zero 2012-03-14 14:35:37 +00:00
Luke Slater
27baefb6ce Merge pull request #33 from danharibo/master
There I fixed it
2012-03-13 09:12:06 -07:00
Daniel Evans
9001cfefcf Fixed quotes 2012-03-13 16:06:19 +00:00
Luke Slater
1753b79463 Merge pull request #31 from danharibo/master
Recursive interpolatedQuote
2012-03-13 08:26:18 -07:00
Daniel Evans
b09a962aa0 Made interpolateQuote recursive 2012-03-12 21:29:29 +00:00
Luke Slater
6584dc477d Merge pull request #29 from psquid/master
webPort config option (default 443), no DB splatting, and ~ignore command (plus timer.js and run.js changes to make it possible).
2012-03-12 14:20:33 -07:00
Daniel Evans
d5197fbcd6 Improved interpolatedQuote 2012-03-12 21:00:17 +00:00
Psychedelic Squid
94430e52a1 sessionData hash for storage which should explicitly not survive beyond full restarts (as opposed to reloading modules). 2012-03-12 13:07:24 +00:00
Psychedelic Squid
92767dbfb1 Fail on invalid-syntax DBs, instead of replacing them. Also, shunt creation of 'realityonce' array to the realityonce listener, so it's not created before being needed. 2012-03-10 18:39:36 +00:00
Psychedelic Squid
f136636093 webPort config option, default 443 2012-03-10 18:21:50 +00:00
Psychedelic Squid
c852a4ada8 Enforce command.js being loaded. Still reloadable, but can't be omitted. 2012-03-10 17:35:50 +00:00
Luke Slater
34a642228d command execution syntax is now in modules/command.js 2012-03-10 15:28:42 +00:00
Luke Slater
d5296b0ea0 Multiple admins supported 2012-03-10 14:38:47 +00:00
Psychedelic Squid
678a2ed9be admin 'act' command, and fix to action syntax. 2012-03-09 21:44:05 +00:00
Psychedelic Squid
1d2659f361 Interpolated quotes, because why not? 2012-03-07 22:13:31 +00:00
Psychedelic Squid
61c6aaf187 Don't fail to have a realityonce quote array. 2012-03-07 04:25:07 +00:00
Psychedelic Squid
fbab79c567 Merge git://github.com/reality/depressionbot 2012-03-07 03:51:29 +00:00
Psychedelic Squid
248ca9b790 Create and/or fix a missing/incomplete DB on running. 2012-03-06 23:54:52 +00:00
Luke Slater
dfb17dc107 change spelling correction order in command ~ 2012-03-06 14:44:38 +00:00
Luke Slater
4782f17cf5 act 2012-02-27 16:43:47 +00:00
Luke Slater
f3e31925af not in all messages.. 2012-02-15 20:39:11 +00:00
Luke Slater
e1047362a2 this rather than dbot 2012-02-15 20:34:01 +00:00
Luke Slater
84558f13d5 command similar check 2012-02-15 20:29:37 +00:00
Luke Slater
cc88d53de4 js runs in vm sandbox, documentation additions 2012-02-13 19:56:04 +00:00
Luke Slater
c50e20d7bb Remove karma and user from default modules 2012-02-11 16:27:30 +00:00
Luke Slater
d271861f65 remove modules call when instantiating new dbot 2012-02-11 16:26:29 +00:00
Luke Slater
29aeb88184 Remove karma related commands because they're stupid, moved kick-related commands into the kick module. 2012-02-11 16:25:20 +00:00
Luke Slater
e79854638a Commenting additions and moved module list specification into the config file. 2012-02-11 16:02:16 +00:00
Luke Slater
846514e09f Actually delete properties instead of just setting them as undefined. 2012-02-08 18:42:38 +00:00
Luke Slater
a16ed7e7dd load js module by default 2011-12-21 15:33:45 +00:00
Luke Slater
d46294c576 accept - in categories everywhere 2011-12-12 14:08:56 +00:00
Luke Slater
c9f4995d50 fix ban bug 2011-12-09 15:30:29 +00:00
Luke Slater
0ad2f46abd ban on thing 2011-12-09 01:35:39 +00:00
Luke Slater
34555817fc readd modules 2011-11-29 13:26:53 +00:00
Luke Slater
6145e55942 server information read from config file 2011-11-27 18:25:54 +00:00
Luke Slater
18ab611e4f Give jsbot a nickserv and a password to use 2011-11-27 12:52:04 +00:00
Luke Slater
f0e079539f merge fix 2011-11-25 12:29:37 +00:00
Luke Slater
365ef7d5fc get password from config file 2011-11-24 13:19:18 +00:00
Luke Slater
3d79363b59 change nick to dbox 2011-11-23 21:08:18 +00:00
Alexander D Brown
03e608ffb1 Added in a feature to remove underscores ('_') from the ends of nicks.
The aim of this feature is display the same messages for users logged in more that once under the same nick (it's common to see 'nick' and 'nick_', etc. for those with bad connections).

Of course there are users that won't conform to this, but short of messing around with hostnames it's the best I've got so far (perhaps ~qalias nick=alt_nick could be a future addition to this).
2011-11-10 19:36:01 +00:00
Alexander D Brown
0784e2c5be Derp. Had 'tirm' instead of 'trim'. 2011-11-10 19:05:19 +00:00
Alexander D Brown
35679ac19e Forgot the widly used ~keyname syntax in run.js 2011-11-10 18:59:25 +00:00
Luke Slater
5e039c814a different join 2011-11-09 22:06:22 +00:00
Luke Slater
372c03f6af Now uses an external configuration file. 2011-11-09 21:54:16 +00:00
Luke Slater
b9d7ff19ed herp fix 2011-10-31 17:09:41 +00:00
Luke Slater
e0dee27658 ** 2011-10-31 17:07:14 +00:00
Luke Slater
c707849980 spelling default 2011-10-26 17:27:30 +01:00
Luke Slater
298ec5f396 derp 2011-10-24 13:52:54 +01:00
Luke Slater
87760f7bd4 right chnnale 2011-10-24 13:51:02 +01:00
Luke Slater
21bd3640ba default channels 2011-10-20 17:18:02 +01:00
Luke Slater
24f6e4d115 add modehate to default modules 2011-10-16 19:58:25 +01:00
Luke Slater
fd7e8e268c 42 2011-10-13 01:36:10 +01:00
Luke Slater
11c0e90925 no auto modehate 2011-10-12 18:30:26 +01:00
Luke Slater
3b54e50c33 autoload 2011-10-12 18:23:40 +01:00
Luke Slater
2ec6423e99 test 2011-10-12 18:16:52 +01:00
Luke Slater
4222857ed3 changed it back 2011-10-12 15:12:06 +01:00
Luke Slater
836e9e3911 db save every ten minutes 2011-10-12 14:53:33 +01:00
Luke Slater
065611bcff Timed save 2011-10-12 14:52:58 +01:00
Luke Slater
1d6e83b3c0 * 2011-10-10 13:41:50 +01:00
Luke Slater
801ca52ab7 * 2011-10-10 13:34:34 +01:00
Luke Slater
3f13de4780 ban 2011-10-09 16:06:28 +01:00
Luke Slater
617ce3ca12 Merge quotes and reality 2011-10-06 13:14:56 +01:00
Luke Slater
61672ab0d7 test 2011-10-02 12:27:59 +01:00
Luke Slater
feb9517a9f move realiPuns to quoteArrs 2011-09-28 14:03:26 +01:00
Luke Slater
1b50f94d8e nobody loves 2011-09-18 18:20:50 +01:00
Luke Slater
ace90011be join normal channels again 2011-09-14 17:48:38 +01:00
Luke Slater
ee671f81e2 modules need to be created first 2011-09-14 17:31:26 +01:00
Luke Slater
1621e22ddd Move onDestroy to the right place 2011-09-14 17:30:39 +01:00
Luke Slater
0f0e935c36 Remove from general population for a bit. test ondestroy 2011-09-14 17:28:00 +01:00
Luke Slater
36874ac3e6 module on destroy and process exit 2011-09-14 17:24:32 +01:00
Luke Slater
8ed3c46c22 add web to run 2011-09-13 21:24:11 +01:00
Luke Slater
94bc9929ce right name... 2011-09-04 15:52:44 +01:00
Luke Slater
033aac8240 usual name and channels again 2011-09-04 15:40:51 +01:00
Luke Slater
54746625fd Timers and an ~rmlast command to remove the last quote. 2011-09-04 15:39:03 +01:00
Luke Slater
40015b798a pick on spoony, make it dispense user comments on joining the room 2011-08-30 16:13:47 +01:00
Luke Slater
522a1d9f69 join 2011-08-28 17:19:38 +01:00
Luke Slater
21ff3e002b Fix ~quote syntax. It's a little messy. 2011-08-28 17:16:28 +01:00
Luke Slater
6b0e2de264 Central command management. Quotes now handles its own commands. 2011-08-28 15:00:22 +01:00
Luke Slater
86a428a5a2 youare doesn't respond to aisbot, reality.js uses valMatch. 2011-08-26 15:34:49 +01:00
Luke Slater
6072cb0e8b Chance in in snippets, valMatch. Reload snippets file. Change youare. 2011-08-25 17:54:59 +01:00
Luke Slater
98e66a3086 Fixed some regex, fixed the admin module etc. Small changes. 2011-08-25 13:32:54 +01:00
Luke Slater
c5c37334f1 Load and unload modules while running, fixes in the user module regex 2011-08-24 18:23:00 +01:00
Luke Slater
3a36ee1894 Hot-loading now works. Fuck yeah! 2011-08-24 16:15:42 +01:00
Luke Slater
3d843f6c96 Remove dependency on prototype.js. Not everything is tested so far though... 2011-08-24 01:57:52 +01:00
Luke Slater
df61c97eb2 Framework for reloading modules when it's possible... Sigh... 2011-08-23 00:04:40 +01:00
Luke Slater
d266f71c0e Moved modules to a subdirectory. 2011-08-22 22:17:13 +01:00
Luke Slater
df4c7a0e24 moved snippets out 2011-08-22 19:43:16 +01:00
Luke Slater
b1cb45798f moved everything to a module 2011-08-22 19:24:23 +01:00
Luke Slater
a32b011b7f Split more into seperate files and automatic loading of modules. 2011-08-22 18:56:36 +01:00
Luke Slater
62d9c65a35 Put user commands in their own file and a lot of work on making the organisation more reasonable. 2011-08-22 17:54:12 +01:00
Luke Slater
cbc526f21b Quotes moved to a seperate file. Made a depressionbot module. 2011-08-22 13:20:06 +01:00
Luke Slater
9d794d0656 Sweet sweet closure 2011-08-21 15:55:36 +01:00
Luke Slater
f6ad566d4d Converted quote and quote arrays. Moved commands into objects. 2011-08-19 11:43:56 +01:00
Luke Slater
9371617d37 Split commands into a seperate structure of functions. 2011-08-18 18:03:00 +01:00
Luke Slater
44dd69a166 Add in the admin bit. 2011-08-17 17:51:47 +01:00
Luke Slater
fa4495326f ~qcount command 2011-08-17 17:31:22 +01:00
Luke Slater
6d5c6a5a78 Quote arrays. Perhaps needs a bit of cleaning up. 2011-08-17 17:02:38 +01:00
Luke Slater
e56f287e1c Reality anecdote generation! 2011-08-17 13:52:01 +01:00
Luke Slater
97e5a8fc08 Added some verbosity and made rquote better. 2011-08-16 19:59:11 +01:00
Luke Slater
dc1a44b9cb changed to literal notation 2011-08-16 18:05:43 +01:00
Luke Slater
63d1256cae initial commit 2011-08-16 17:41:29 +01:00