diff --git a/modules/ExpGamingBot/autoChat/softmod.json b/modules/ExpGamingBot/autoChat/softmod.json index b02f6f94..bf81fd8b 100644 --- a/modules/ExpGamingBot/autoChat/softmod.json +++ b/modules/ExpGamingBot/autoChat/softmod.json @@ -1,7 +1,7 @@ { "name": "autoChat", "version": "4.0.0", - "type": "Module", + "type": "Submodule", "description": "Sends messages in chat based on what has been said by other players", "location": "", "keywords": [ @@ -10,8 +10,9 @@ " Jokes", " Fun" ], - "author": "", - "contact": "", - "license": "", - "dependencies": {} + "dependencies": { + "FactorioStdLib.Game": "^0.8.0", + "ExpGamingCore.Ranking": "?^4.0.0" + }, + "collection": "ExpGamingBot_4.0.0" } \ No newline at end of file diff --git a/modules/ExpGamingBot/autoMessage/control.lua b/modules/ExpGamingBot/autoMessage/control.lua index 6dcd2c4c..8c4067e5 100644 --- a/modules/ExpGamingBot/autoMessage/control.lua +++ b/modules/ExpGamingBot/autoMessage/control.lua @@ -43,12 +43,12 @@ script.on_init(function(event) player_return({'chat-bot.message',message},nil,player) end end):on_event('error',function(self,err) - Sync.emit_embeded{ + if Sync then Sync.emit_embeded{ title='Auto Message Error', color=Color.to_hex(defines.text_color.bg), description='Auto Message Error - Closed Thread', Error=err - } + } end self.reopen = false self:close() end):open() diff --git a/modules/ExpGamingBot/autoMessage/softmod.json b/modules/ExpGamingBot/autoMessage/softmod.json index 8e06d286..a86c7c8d 100644 --- a/modules/ExpGamingBot/autoMessage/softmod.json +++ b/modules/ExpGamingBot/autoMessage/softmod.json @@ -1,7 +1,7 @@ { "name": "autoMessage", "version": "4.0.0", - "type": "Module", + "type": "Submodule", "description": "Prints a message every 15 minutes to chat.", "location": "", "keywords": [ @@ -10,8 +10,11 @@ " Auto Message", " Message" ], - "author": "", - "contact": "", - "license": "", - "dependencies": {} + "dependencies": { + "ExpGamingCore.Server": "^4.0.0", + "FactorioStdLib.Game": "^0.8.0", + "ExpGamingCore.Ranking": "?^4.0.0", + "ExpGamingCore.Sync": "?^4.0.0" + }, + "collection": "ExpGamingBot_4.0.0" } \ No newline at end of file diff --git a/modules/ExpGamingBot/discordAlerts/softmod.json b/modules/ExpGamingBot/discordAlerts/softmod.json new file mode 100644 index 00000000..964b4957 --- /dev/null +++ b/modules/ExpGamingBot/discordAlerts/softmod.json @@ -0,0 +1,20 @@ +{ + "name": "discordAlerts", + "version": "4.0.0", + "type": "Submodule", + "description": "Sends alerts to discord once there is a bot set up to read the alerts.", + "location": "", + "keywords": [ + "Bot", + " Discord", + " Alerts", + " Messages", + " Acctions" + ], + "dependencies": { + "ExpGamingCore.Sync": "^4.0.0", + "FactorioStdLib.Color": "^0.8.0", + "FactorioStdLib.Game": "^0.8.0" + }, + "collection": "ExpGamingBot_4.0.0" +} \ No newline at end of file diff --git a/modules/ExpGamingBot/softmod.json b/modules/ExpGamingBot/softmod.json new file mode 100644 index 00000000..9d8259aa --- /dev/null +++ b/modules/ExpGamingBot/softmod.json @@ -0,0 +1,78 @@ +{ + "name": "ExpGamingBot", + "version": "4.0.0", + "type": "Collection", + "description": "Different parts of a useful bot to help run a server. Discord Bot Not Included.", + "location": "", + "keywords": [ + "Discord", + " Bot", + " Messages", + " Chat", + " Auto" + ], + "author": "Cooldude2606", + "contact": "Discord: Cooldude2606#5241", + "license": "https://github.com/explosivegaming/scenario/blob/master/LICENSE", + "submodules": { + "autoChat": { + "name": "autoChat", + "version": "4.0.0", + "type": "Submodule", + "description": "Sends messages in chat based on what has been said by other players", + "location": "", + "keywords": [ + "Chat", + " Bot", + " Jokes", + " Fun" + ], + "dependencies": { + "FactorioStdLib.Game": "^0.8.0", + "ExpGamingCore.Ranking": "?^4.0.0" + }, + "collection": "ExpGamingBot_4.0.0" + }, + "autoMessage": { + "name": "autoMessage", + "version": "4.0.0", + "type": "Submodule", + "description": "Prints a message every 15 minutes to chat.", + "location": "", + "keywords": [ + "Bot", + " Chat", + " Auto Message", + " Message" + ], + "dependencies": { + "ExpGamingCore.Server": "^4.0.0", + "FactorioStdLib.Game": "^0.8.0", + "ExpGamingCore.Ranking": "?^4.0.0", + "ExpGamingCore.Sync": "?^4.0.0" + }, + "collection": "ExpGamingBot_4.0.0" + }, + "discordAlerts": { + "name": "discordAlerts", + "version": "4.0.0", + "type": "Submodule", + "description": "Sends alerts to discord once there is a bot set up to read the alerts.", + "location": "", + "keywords": [ + "Bot", + " Discord", + " Alerts", + " Messages", + " Acctions" + ], + "dependencies": { + "ExpGamingCore.Sync": "^4.0.0", + "FactorioStdLib.Color": "^0.8.0", + "FactorioStdLib.Game": "^0.8.0" + }, + "collection": "ExpGamingBot_4.0.0" + } + }, + "dependencies": {} +} \ No newline at end of file