Ignore added for bean image, global log update to support objects

This commit is contained in:
Matthew Cech
2021-01-02 15:59:47 -08:00
parent f6b35109bf
commit c168ef8ecb
3 changed files with 6 additions and 2 deletions
+2
View File
@@ -68,3 +68,5 @@ rP\.txt
*.log *.log
cloc\.exe cloc\.exe
beanImage.png
+1 -1
View File
@@ -189,7 +189,7 @@ public class ObjectBuilder
// allowed to use the bot at a general level. // allowed to use the bot at a general level.
KittyRole role = KittyRole.General; KittyRole role = KittyRole.General;
if(event.getAuthor().getId() == event.getGuild().getOwner().getUser().getId()) if(event.getAuthor().getId() == event.getGuild().getOwnerId())
{ {
role = KittyRole.Admin; role = KittyRole.Admin;
} }
+2
View File
@@ -36,11 +36,13 @@ public class GlobalLog
System.out.println(logLine); System.out.println(logLine);
} }
public static void log(LogFilter filter, Object obj) { write(log, filter, obj.toString()); }
public static void log(LogFilter filter, String msg) { write(log, filter, msg); } public static void log(LogFilter filter, String msg) { write(log, filter, msg); }
public static void warn(LogFilter filter, String msg) { write(warn, filter, msg); } public static void warn(LogFilter filter, String msg) { write(warn, filter, msg); }
public static void error(LogFilter filter, String msg) { write(error, filter, msg); System.err.println(msg); System.err.flush(); } public static void error(LogFilter filter, String msg) { write(error, filter, msg); System.err.println(msg); System.err.flush(); }
public static void fatal(LogFilter filter, String msg) throws Exception { write(fatal, filter, msg); throw new Exception(msg); } public static void fatal(LogFilter filter, String msg) throws Exception { write(fatal, filter, msg); throw new Exception(msg); }
public static void log(Object obj) { log(LogFilter.Debug, obj); }
public static void log(String msg) { log(LogFilter.Debug, msg); } public static void log(String msg) { log(LogFilter.Debug, msg); }
public static void warn(String msg) { warn(LogFilter.Debug, msg); } public static void warn(String msg) { warn(LogFilter.Debug, msg); }
public static void error(String msg) { error(LogFilter.Debug, msg); } public static void error(String msg) { error(LogFilter.Debug, msg); }