Code Monkey home page Code Monkey logo

royalpack-5's Introduction

royalpack

Configuration

[Packs."royalpack"]

# The main Telegram group
Telegram.main_group_id = -1001153723135

# The main Discord channel
Discord.main_channel_id = 566023556618518538

# A Imgur API token (https://apidocs.imgur.com/?version=latest)
Imgur.token = "1234567890abcde"

# A Steam Web API key (https://steamcommunity.com/dev/apikey)
Steam.web_api_key = "123567890ABCDEF123567890ABCDEF12"

# The Peertube instance you want to use for new video notifications
Peertube.instance_url = "https://pt.steffo.eu"

# The delay in seconds between two new video checks
Peertube.feed_update_timeout = 300

# The Funkwhale instance you want to use for the fw commands
Funkwhale.instance_url = "https://fw.steffo.eu"

# The id of the role that users should have to be displayed by default in cv
Cv.displayed_role_id = 424549048561958912

# The max duration of a song downloaded with the play commands
Play.max_song_duration = 7230

# The Telegram channel where matchmaking messages should be sent in
Matchmaking.mm_chat_id = -1001204402796

[Packs."royalpack"."steampowered"]
token = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

[Packs."royalpack"."steampowered".updater]
enabled = false
period = 86400
delay = 1
target = -1001153723135

[Packs."royalpack"."dota".updater]
enabled = true
period = 86400
delay = 1
target = -1001153723135

[Packs."royalpack"."brawlhalla"]
token = "1234567890ABCDEFGHJKLMNOPQRST"

[Packs."royalpack"."brawlhalla".updater]
enabled = true
period = 86400
delay = 1
target = -1001153723135

[Packs."royalpack"."leagueoflegends"]
token = "RGAPI-AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA"
region = "euw1"

[Packs."royalpack"."leagueoflegends".updater]
enabled = true
period = 86400
delay = 1
target = -1001153723135

[Packs."royalpack"."osu"]
client_id = 123456789
client_secret = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"

[Packs."royalpack"."osu".login]
enabled = false

[Packs."royalpack"."osu".updater]
enabled = true
period = 86400
delay = 5
target = -1001153723135

royalpack-5's People

Contributors

alby1 avatar cookie-chr avatar nemesis-ft avatar protoxide22 avatar steffo99 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

royalpack-5's Issues

Wiki: Fare un renderer markdown custom

Deve avere:

  • Titoli
  • A capo
  • Paragrafi
  • Grassetto
  • Corsivo
  • Grassivo
  • Strikethrough
  • Link
  • Citazioni
  • Citazioni del diario
  • Spoiler
  • Elenchi puntati
  • Elenchi numerati
  • Tabelle
  • Embed di YouTube
  • Embed di Clyp
  • RYGProfili

Error: PlayerNotConnectedError

Sentry Issue: ROYALNET-K8

PlayerNotConnectedError: 
  File "royalnet/serf/serf.py", line 271, in network_handler
    response_data = await event.run(**message.data)
  File "royalpack/events/discord_play.py", line 48, in run
    await voice_player.start()
  File "royalnet/serf/discord/voiceplayer.py", line 88, in start
    raise PlayerNotConnectedError()

KeyError: 'player_level'

Sentry Issue: ROYALNET-QA

KeyError: 'player_level'
  File "/opt/royalnet/venv/lib/python3.8/site-packages/royalpack/commands/abstract/linker.py", line 179, in run_updater
    await self.update(session=session,
  File "/opt/royalnet/venv/lib/python3.8/site-packages/royalpack/commands/steampowered.py", line 80, in update
    obj.account_level = response["response"]["player_level"]

Bug: that's now how you renew oauth2 tokens, isn't it

Sentry Issue: ROYALNET-PV

ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://osu.ppy.sh/oauth/token')
(1 additional frame(s) were not displayed)
...
  File "/home/royalnet/venv/lib/python3.8/site-packages/royalpack/commands/osu.py", line 60, in update
    await obj.refresh_if_expired(client_id=self.client_id,
  File "/home/royalnet/venv/lib/python3.8/site-packages/royalpack/tables/osu.py", line 75, in refresh_if_expired
    await self.refresh(client_id=client_id, client_secret=client_secret, base_url=base_url, path=path)
  File "/home/royalnet/venv/lib/python3.8/site-packages/royalpack/tables/osu.py", line 64, in refresh
    j = await oauth_refresh(url="https://osu.ppy.sh/oauth/token",
  File "/home/royalnet/venv/lib/python3.8/site-packages/royalpack/types/oauth_refresh.py", line 13, in oauth_refresh
    j = await response.json()
  File "aiohttp/client_reqrep.py", line 1026, in json
    raise ContentTypeError(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.