Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -56,7 +56,7 @@ public class CommandBoop extends Command
|
||||
{
|
||||
super(level, rating);
|
||||
boopTracker = new BoopTracker();
|
||||
DatabaseManager.instance.Register(boopTracker);
|
||||
DatabaseManager.instance.globalRegister(boopTracker);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -24,7 +24,7 @@ public class CommandDBFlush extends Command
|
||||
@Override
|
||||
public void OnRun(KittyGuild guild, KittyChannel channel, KittyUser user, UserInput input, Response res)
|
||||
{
|
||||
int numUpdated = DatabaseManager.instance.Upkeep();
|
||||
int numUpdated = DatabaseManager.instance.upkeep();
|
||||
|
||||
KittyEmbed embed = new KittyEmbed();
|
||||
embed.title = "Database queue flushed";
|
||||
|
||||
@@ -33,9 +33,9 @@ public class CommandDBStats extends Command
|
||||
{
|
||||
KittyEmbed embed = new KittyEmbed();
|
||||
embed.title = "Database Info";
|
||||
embed.descriptionText = "**Tracked Items:** " + DatabaseManager.instance.GetTrackedObjectsSize();
|
||||
embed.descriptionText = "**Tracked Items:** " + DatabaseManager.instance.getTrackedObjectsSize();
|
||||
embed.descriptionText += "\n";
|
||||
embed.descriptionText += "**Last Upkeep:** " + dateFormat.format(DatabaseManager.instance.GetLastUpkeep()) + " UTC-7";
|
||||
embed.descriptionText += "**Last Upkeep:** " + dateFormat.format(DatabaseManager.instance.getLastUpkeep()) + " UTC-7";
|
||||
embed.color = new Color(7*16, 8*16, 9*16);
|
||||
|
||||
res.CallEmbed(embed);
|
||||
|
||||
@@ -47,7 +47,7 @@ public class CommandShutdown extends Command
|
||||
{
|
||||
// Force upkeep, this works so long as upkeep is on the main thread.
|
||||
res.CallImmediate(LocStrings.Stub("ShutdownSafe"));
|
||||
DatabaseManager.instance.Upkeep();
|
||||
DatabaseManager.instance.upkeep();
|
||||
GlobalLog.Warn(LogFilter.Command, LocStrings.Lookup("ShutdownSafe"));
|
||||
|
||||
System.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user