MOTD -> message of the day

This commit is contained in:
Wiktor Mazur
2020-06-07 19:20:18 +02:00
parent e0e756e296
commit 61c80793e4
+2 -1
View File
@@ -33,8 +33,9 @@ def fix_npcap():
def get_modt(always_on_top): def get_modt(always_on_top):
motd_url = 'https://mazurwiktor.github.io/aostats/motd' motd_url = 'https://mazurwiktor.github.io/aostats/motd'
msg = QMessageBox() msg = QMessageBox()
msg.setWindowIcon(QtGui.QIcon(path('albion-stats-icon.png')))
msg.setObjectName("Motd") msg.setObjectName("Motd")
msg.setWindowTitle("MOTD") msg.setWindowTitle("Message of the day")
msg.setInformativeText(str(requests.get(motd_url).text)) msg.setInformativeText(str(requests.get(motd_url).text))
msg.setStandardButtons(QMessageBox.Ok) msg.setStandardButtons(QMessageBox.Ok)