Compare commits

..

No commits in common. "0eb571efa22ff3bf3383c1143d71c1fa0e2af1e4" and "7dc97123be50a569007ed73bfe0076e87324eeac" have entirely different histories.

5 changed files with 6 additions and 15 deletions

View File

@ -6,7 +6,7 @@ All static data came from https://github.com/WFCD/warframe-worldstate-data
## Requirements
Python 3.6+
Python packages: `twisted pyOpenSSL service_identity requests`
Python packages: `twisted service_identity requests`
## Config
`server` - Server address.

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"MT_ARENA": {"value": "Rathuum"}, "MT_ARTIFACT": {"value": "Disruption"}, "MT_ASSAULT": {"value": "Assault"}, "MT_ASSASSINATION": {"value": "Assassination"}, "MT_CAPTURE": {"value": "Capture"}, "MT_DEFENSE": {"value": "Defense"}, "MT_DISRUPTION": {"value": "Disruption"}, "MT_EVACUATION": {"value": "Defection"}, "MT_EXCAVATE": {"value": "Excavation"}, "MT_EXTERMINATION": {"value": "Extermination"}, "MT_HIVE": {"value": "Hive"}, "MT_INTEL": {"value": "Spy"}, "MT_LANDSCAPE": {"value": "Free Roam"}, "MT_MOBILE_DEFENSE": {"value": "Mobile Defense"}, "MT_PVP": {"value": "Conclave"}, "MT_RESCUE": {"value": "Rescue"}, "MT_RETRIEVAL": {"value": "Hijack"}, "MT_SABOTAGE": {"value": "Sabotage"}, "MT_SECTOR": {"value": "Dark Sector"}, "MT_SURVIVAL": {"value": "Survival"}, "MT_TERRITORY": {"value": "Interception"}}
{"MT_EXCAVATE": {"value": "Excavation"}, "MT_SABOTAGE": {"value": "Sabotage"}, "MT_MOBILE_DEFENSE": {"value": "Mobile Defense"}, "MT_ASSASSINATION": {"value": "Assassination"}, "MT_EXTERMINATION": {"value": "Extermination"}, "MT_HIVE": {"value": "Hive"}, "MT_DEFENSE": {"value": "Defense"}, "MT_TERRITORY": {"value": "Interception"}, "MT_ARENA": {"value": "Rathuum"}, "MT_PVP": {"value": "Conclave"}, "MT_RESCUE": {"value": "Rescue"}, "MT_INTEL": {"value": "Spy"}, "MT_SURVIVAL": {"value": "Survival"}, "MT_CAPTURE": {"value": "Capture"}, "MT_SECTOR": {"value": "Dark Sector"}, "MT_RETRIEVAL": {"value": "Hijack"}, "MT_ASSAULT": {"value": "Assault"}, "MT_EVACUATION": {"value": "Defection"}, "MT_LANDSCAPE": {"value": "Free Roam"}}

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ import threading
import configparser
import requests
from twisted.internet import ssl, protocol, reactor
from twisted.internet import protocol, reactor
from twisted.words.protocols import irc
URI = "http://content.warframe.com/dynamic/worldState.php"
@ -158,11 +158,6 @@ class WarBot(irc.IRCClient):
Called when the bot receives a PRIVMSG, which can come from channels
or users alike.
"""
if message == ".help":
cmds = [".help", ".alerts", ".subscribe", ".unsubscribe",
".update_data", ".cetus"]
cmds.sort()
self.msg(channel, ", ".join(cmds))
if message == ".alerts":
self.alert_ids = []
self.checkNewAlerts(channel)
@ -293,10 +288,6 @@ if __name__ == "__main__":
server = config["server"]
port = config.getint("port")
print("Connecting to:", server)
reactor.connectSSL(
server,
port,
WarBotFactory(config),
ssl.ClientContextFactory())
reactor.connectTCP(server, port, WarBotFactory(config))
reactor.addSystemEventTrigger('before','shutdown', stop.set)
reactor.run()