Remove some legacy cruft.

feature/embed-uploads
Tristan Gosselin-Hane 7 years ago
parent ff4d001d81
commit 997d99e8ee
  1. 16
      webhook-bridge.py

@ -342,22 +342,6 @@ def main():
connection.write_packet(packet)
discord_bot.run(config.discord_token)
while True:
try:
text = input()
if text == "/respawn":
logging.info("respawning...")
packet = serverbound.play.ClientStatusPacket()
packet.action_id = serverbound.play.ClientStatusPacket.RESPAWN
connection.write_packet(packet)
else:
packet = serverbound.play.ChatPacket()
packet.message = text
connection.write_packet(packet)
except KeyboardInterrupt:
logging.info("Bye!")
sys.exit()
if __name__ == "__main__":

Loading…
Cancel
Save