« first day (1522 days earlier)      last day (2595 days later) » 

12:07 AM
(unsummon
 
@Michael That's one of my home rooms, I can't leave it.
 
(summon 23262
 
OakBot Online.
@Michael Joined.
 
(unsummon 23262
 
@Michael Good riddance.
 
1:04 AM
/about
 
OakBot by Michael | source code | JAR built on: 6 minutes ago | started up: 2 minutes ago | hosted by: The Uni Cloud | responded to 125 commands since Mar 9, 2017
 
/help
 
Commands=====================
/8ball     Simulates a magic 8-ball.
/about     Displays information about this bot.
/define    Displays word definitions from the dictionary.
/help      Displays this help message.
/http      Displays information about HTTP status codes and methods.
/javadoc   Displays class documentation from the Javadocs.
/learn     Teaches the bot a new command.
/roll      Rolls a variable-sided die or makes a choice.
/shrug     Meh.
/shutdown  Terminates the bot (admins only).
 
1:18 AM
/shrug
 
¯\_(ツ)_/¯
 
¯\_(ツ)_/¯
(learn test ¯_(ツ)_/¯
 
@Michael A command with that name already exists.
 
(learn test2 ¯_(ツ)_/¯
 
@Michael Saved.
 
1:21 AM
(learn test3 ¯\_(ツ)_/¯
 
@Michael Saved.
 
(test3
 
¯_(ツ)_/¯
 
1\\2
(learn test4 1\\2
 
@Michael Saved.
 
1:25 AM
(test4
 
1\\2
 
¯_(ツ)_/¯
¯\_(ツ)_/¯
¯\_(ツ)_/¯
¯\\_(ツ)_/¯
¯\_(ツ)_/¯
(learn test5 ¯\_(ツ)_/¯
 
@Michael Saved.
 
(test5
 
¯_(ツ)_/¯
 
1:31 AM
(learn test6 ¯\\\_(ツ)_/¯
 
@Michael Saved.
 
(test6
 
¯\\_(ツ)_/¯
 
(learn test7 ¯\_(ツ)_/¯
 
@Michael Saved.
 
1:31 AM
(test7
 
¯_(ツ)_/¯
 
(test7
(test7
 
¯\_(ツ)_/¯
 
/shutdown
 
@Michael Only admins can shut me down. :P
 
1:52 AM
Shutting down. See you later.
OakBot Online.
 
118 messages moved from Sandbox
 
 
13 hours later…
2:53 PM
(about
 
OakBot by Michael | source code | JAR built on: Today at 8:34 AM | started up: 1 minutes ago | responded to 0 commands since Mar 26, 2017
 
(learn test test
 
@Michael Saved.
 
(test
 
<b>test</b>
 
2:56 PM
(unsummon 23262
 
@Michael I'm not in that room... -_-
 
(summon 23262
 
OakBot Online.
@Michael Joining!
 
(unsummon 23262
 
@Michael Less for me to worry about.
 
2:59 PM
12 messages moved from Sandbox
 
 
7 hours later…
9:56 PM
:) To make things easier I created this function, every database query is wrapped in a callback, now here we go.

```js
function name()
{
//make sure that the for's get run of aftre another
for(var i=0; i< array.length; i++)
{
get_items_from_DB..
}

for(var i=0; i< array.length; i++)
{
get_items_from_DB..
}

for(var i=0; i< array.length; i++)
{
get_items_from_DB..{
updateDB
});
}
}```
 
1 message moved from JavaScript
 
okay let me say at first that every function query gets called with callback, the question is how to make this function run the for's in the correct order from top to bottom

function name()
{
//make sure that the for's get run of aftre another
for(var i=0; i< array.length; i++)
{
get_items_from_DB..
}

for(var i=0; i< array.length; i++)
{
get_items_from_DB..
}

for(var i=0; i< array.length; i++)
{
get_items_from_DB..{
updateDB
});
}
}
 
1 message moved from JavaScript
 
return Promise.resolve(true)
.then(function()
{
/// for's
}.then(..|
//other for
?
 
1 message moved from JavaScript
 

« first day (1522 days earlier)      last day (2595 days later) »