1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

publish: 5.10.0

This commit is contained in:
Steffo 2020-07-08 02:55:15 +02:00
parent 68a3c910b0
commit 632c3327b7
Signed by: steffo
GPG key ID: 896A80F55F7C97F0
6 changed files with 22 additions and 12 deletions

View file

@ -18,10 +18,16 @@ Imgur.token = "1234567890abcde"
Steam.web_api_key = "123567890ABCDEF123567890ABCDEF12" Steam.web_api_key = "123567890ABCDEF123567890ABCDEF12"
# Should Royalnet automatically update the Dota ranks of all users? # Should Royalnet automatically update the Dota ranks of all users?
Dota.updater = false Dota.updater.enabled = false
# How many seconds should there be between two Dota updates?
Dota.updater.delay = 86400
# Should Royalnet automatically update the League of Legends ranks of all users? # Should Royalnet automatically update the League of Legends ranks of all users?
Lol.updater = false Lol.updater.enabled = false
# How many seconds should there be between two League of Legends updates?
Lol.updater.delay = 86400
# A League of Legends API token (https://developer.riotgames.com/) # A League of Legends API token (https://developer.riotgames.com/)
Lol.token = "RGAPI-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" Lol.token = "RGAPI-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
@ -30,7 +36,10 @@ Lol.token = "RGAPI-aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
Lol.region = "euw1" Lol.region = "euw1"
# Should Royalnet automatically update the Brawlhalla ranks of all users? # Should Royalnet automatically update the Brawlhalla ranks of all users?
Brawlhalla.updater = false Brawlhalla.updater.enabled = false
# How many seconds should there be between two League of Legends updates?
Brawlhalla.updater.delay = 86400
# A Brawlhalla API key (https://dev.brawlhalla.com/) # A Brawlhalla API key (https://dev.brawlhalla.com/)
Brawlhalla.api_key = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA" Brawlhalla.api_key = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

View file

@ -2,7 +2,7 @@
[tool.poetry] [tool.poetry]
name = "royalpack" name = "royalpack"
version = "5.9.10" version = "5.10.0"
description = "A Royalnet command pack for the Royal Games community" description = "A Royalnet command pack for the Royal Games community"
authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"] authors = ["Stefano Pigozzi <ste.pigozzi@gmail.com>"]
license = "AGPL-3.0+" license = "AGPL-3.0+"

View file

@ -25,8 +25,8 @@ class BrawlhallaCommand(Command):
def __init__(self, interface: CommandInterface): def __init__(self, interface: CommandInterface):
super().__init__(interface) super().__init__(interface)
if self.interface.name == "telegram" and self.config["Brawlhalla"]["updater"]: if self.interface.name == "telegram" and self.config["Brawlhalla"]["updater"]["enabled"]:
self.loop.create_task(self._updater(7200)) self.loop.create_task(self._updater(int(self.config["Brawlhalla"]["updater"]["delay"])))
async def _send(self, message): async def _send(self, message):
client = self.serf.client client = self.serf.client

View file

@ -24,8 +24,8 @@ class DotaCommand(rc.Command):
def __init__(self, interface: rc.CommandInterface): def __init__(self, interface: rc.CommandInterface):
super().__init__(interface) super().__init__(interface)
if self.interface.name == "telegram" and self.config["Dota"]["updater"]: if self.interface.name == "telegram" and self.config["Dota"]["updater"]["enabled"]:
self.loop.create_task(self._updater(7200)) self.loop.create_task(self._updater(int(self.config["Dota"]["updater"]["delay"])))
async def _send(self, message): async def _send(self, message):
client = self.serf.client client = self.serf.client

View file

@ -24,9 +24,10 @@ class LeagueoflegendsCommand(rc.Command):
def __init__(self, interface: rc.CommandInterface): def __init__(self, interface: rc.CommandInterface):
super().__init__(interface) super().__init__(interface)
self._riotwatcher = riotwatcher.RiotWatcher(api_key=self.config["Lol"]["token"]) self._riotwatcher: Optional[riotwatcher.RiotWatcher] = None
if self.interface.name == "telegram" and self.config["Lol"]["updater"]: if self.interface.name == "telegram" and self.config["Lol"]["updater"]["enabled"]:
self.loop.create_task(self._updater(7200)) self._riotwatcher = riotwatcher.RiotWatcher(api_key=self.config["Lol"]["token"])
self.loop.create_task(self._updater(int(self.config["Lol"]["updater"]["delay"])))
async def _send(self, message): async def _send(self, message):
client = self.serf.client client = self.serf.client

View file

@ -1 +1 @@
semantic = "5.9.10" semantic = "5.10.0"