3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-18 08:32:42 +01:00
Commit Graph

222 Commits

Author SHA1 Message Date
reality
c061109b55 [#186] fix for modules too 2013-01-21 19:01:53 +00:00
reality
d246293202 Fix [#186] 2013-01-21 17:55:12 +00:00
reality
1673c8846b basic dependencies as per [#85] 2013-01-21 17:39:21 +00:00
reality
b24bd63cd0 load root config changes [#145] 2013-01-21 00:05:42 +00:00
reality
f64c50a0c8 setconfig command [#145] 2013-01-20 15:17:44 +00:00
reality
a2ea1b8c33 Load module config options from db store [#145] 2013-01-20 14:45:58 +00:00
reality
921da917a4 Command hooks [#86]
* Command API function to addHook(command, callback)
* Commands open to callbacks must return information or indicate failed completion by return false
* Hooks to be added in module onLoad
* Command loop checks for available hooks and return state, then applies with module scope.
* onLoad running moved to end of all module loading to facilitate this without order problems
* Added example for ~qadd dent
2013-01-15 17:23:14 +00:00
reality
0a3d1b6f9e Fixed web loading and hot refresh of pages [#131] 2013-01-15 13:58:13 +00:00
reality
1d5fcf2f40 Loads API functions into object according to module again. [#131] 2013-01-14 22:34:47 +00:00
reality
96792d5008 Fixed doom function binding bug and transformed js module [#131] 2013-01-14 22:03:58 +00:00
reality
8b7953e906 tranform users, fix for bind in module loader [#131] 2013-01-14 21:03:47 +00:00
reality
8542ceb9e9 Do the same for string data [#131] 2013-01-14 18:15:07 +00:00
reality
a0bec5b2f9 I must say... I am proud of this... [#131] 2013-01-14 17:58:58 +00:00
reality
3bde9e4930 Transformed dent module, changed module loader to give right scope. [#131] 2013-01-14 17:45:53 +00:00
reality
5419a664dc Much better! [#131] 2013-01-14 16:24:38 +00:00
reality
dc269b53b4 Here is an experimental look at how modules will have to be as per [#131] 2013-01-14 16:02:40 +00:00
reality
dff5825bfe web fix. dope 2013-01-13 17:18:30 +00:00
reality
08bd67f4f0 incomplete underscorisation in quotes [#81] 2013-01-12 21:40:16 +00:00
reality
0769d0bd69 Removed dependency on commandMap (I think ignore might still look at it for now). Underscorised command. [#81] 2013-01-12 16:14:17 +00:00
reality
af20b5cbfb Load missing config directives from defaults file 2013-01-12 15:07:14 +00:00
reality
d9f8ff0c1f lots of underscorisation in module loading 2013-01-12 14:58:54 +00:00
reality
e68cf45e65 Few tests and that 2013-01-12 10:38:40 +00:00
reality
20ef3b6432 Command properties may be specified in module config file [#125] 2013-01-12 10:07:39 +00:00
reality
f8d4896eb6 Moderator + admin access level for commands [#124]
* May now add property 'access' to commands specifying 'moderator' or 'admin' level access
* Add 'moderators' key to config
* Convert commands in admin module to use command marshalling listener rather than its own
2013-01-12 09:38:13 +00:00
reality
eb526b18c5 Delete the pages module cache for a module if it exists 2013-01-07 12:49:18 +00:00
Daniel Evans
f91fc99d35 Merge branch 'master' of git://github.com/reality/depressionbot into weboverhaul
Conflicts:
	modules/quotes/quotes.js
	modules/users/users.js
	run.js
2013-01-04 20:15:12 +00:00
reality
078379b5f1 API functionality as per [#98]
* Also resolveUser api function in user module [#98]
2013-01-03 19:56:30 +00:00
reality
078c4cf3e3 ignorableModules now built with filter, module.toString returns name 2012-12-30 17:52:42 +00:00
reality
9f3596aa6a dbot.modules is now an object 2012-12-30 00:45:25 +00:00
Daniel Evans
e544c909ec Modularised web routes and views 2012-12-24 05:51:19 +00:00
Daniel Evans
cf53413bff Made stack trace dependant on dbot.config.debugMode 2012-12-24 03:13:41 +00:00
Daniel Evans
bea13e56f8 Modified module error output 2012-12-24 03:08:36 +00:00
reality
bd6c42d57e Allow listeners to be attached to multiple event types. 2012-12-23 16:54:30 +00:00
reality
81217ece50 Add a debug mode that shows the error and the top of the stack trace in the case of an error if activated. 2012-12-23 02:25:58 +00:00
reality
6a28327d5c load config before the module itself 2012-12-18 11:07:39 +00:00
Sam Nicholls
c9a7254921 Actually save the database
Moved this.save() call to end of reloadModules so new keys are actually saved.
2012-12-17 19:37:33 +00:00
Sam Nicholls
198fe9992d Fixed run.js
Will now create dbKeys
2012-12-17 19:30:50 +00:00
Luke Slater
d0c47d18eb Moved all data loaded from config to be used only from dbot.config. Changed admin key in to admins to avoid clash with admin module config. Admins should probably be a key under dbot.admin module anyway. 2012-12-17 17:18:31 +00:00
Luke Slater
918a3c4540 Check for required keys in config 2012-12-12 18:33:29 +00:00
Luke Slater
a431d4c636 Config defaults and file loading changes
* Attempts to load config from default file upon failing to load config.json
* Stops if db fails to load
* Automatically loads config keys into dbot object
2012-12-12 18:25:07 +00:00
Luke Slater
c64e66da17 Module specific config. Allows specify dbKeys to ensure default objects there for use. 2012-12-12 18:07:08 +00:00
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