Closed nickstarform closed 5 years ago
Also add ability to parse every message sent and keep track of the number of emojis used:
template.properties
// the emojiStatus will keep track of when this was set EmojiStatus = true 20180808 // example if ever >= month out it will whisper GM with breakdown and turn off!enableemoji // enables for only a month // for every call resets stats !disableemoji // disables the emoji tracking
!enableemoji list // lists the guilds tracking emojis and when they started
emoji // lists all emojis and their counts
only track custom guild emotes. Other emotes require parsing.......
error
isEmojiStatus: :true:
now: Mon Aug 27 05:32:21 GMT 2018
currTime: Mon Aug 27 05:31:05 GMT 2018
ccount: 0
ccount: 1
[JDA MainWS-ReadThread] ERROR net.dv8tion.jda.core.JDA - One of the EventListeners had an uncaught exception
java.lang.IllegalArgumentException: Message may not be null
at net.dv8tion.jda.core.utils.Checks.notNull(Checks.java:56)
at net.dv8tion.jda.core.entities.MessageChannel.getHistoryBefore(MessageChannel.java:1654)
at io.ph.util.Util.getMessagesAfterTime(Util.java:506)
at io.ph.bot.listeners.Listeners.onGuildMessageReceived(Listeners.java:355)
at net.dv8tion.jda.core.hooks.ListenerAdapter.onEvent(ListenerAdapter.java:379)
at net.dv8tion.jda.core.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:84)
at net.dv8tion.jda.core.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:90)
at net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:37)
at net.dv8tion.jda.core.requests.WebSocketClient.onDispatch(WebSocketClient.java:1051)
at net.dv8tion.jda.core.requests.WebSocketClient.onEvent(WebSocketClient.java:911)
at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:890)
at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:1089)
at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)
at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)
at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)
at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)
at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
removed, not worth effort
Need to write a dynamic function that allows for use of server emojis.
http://home.dv8tion.net:8080/job/JDA/javadoc/net/dv8tion/jda/core/entities/Emote.html
Need to implement this standalone function in anything that the user can request of the bot calls: e.g.
Say.java, Quote.java,Macro.java, WelcomeMessage.java,