Git Product home page Git Product logo

xleague's Introduction

@djetelina's Holopin board

Hey, currently I'm wearing a hat of an Infrastructure Engineer @ Heureka Group.

Chances are you'll see me trying to contribute to projects we're using or thinking about using. We're also trying to open source parts of our infrastructure setup - to serve as an inspiration to those who are wondering how others are doing it.

You probably won't find me on many mainstream social networks - at least not active. If you for some reason want to reach out, try me on Mastodon or through Matrix @david:jtl.vision

xleague's People

Contributors

djetelina avatar gitter-badger avatar janiczek avatar kylecartmell avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

gitter-badger

xleague's Issues

Card fetching has problem encoding some cards

An error has occurred: <[Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xe2 in position 264: ordinal not in range(128)
C:\python27\lib\site-packages\twisted\internet\tcp.py:298:connectionLost
C:\python27\lib\site-packages\twisted\web\client.py:213:connectionLost
C:\python27\lib\site-packages\twisted\internet\defer.py:382:callback
C:\python27\lib\site-packages\twisted\internet\defer.py:490:_startRunCallbacks
--- ---
C:\python27\lib\site-packages\twisted\internet\defer.py:577:_runCallbacks
XLeague\main.py:340:callprocess
XLeague\main.py:345:cardprocess
]>

Port command handling

After database restructure, we can start porting commands and rewriting database.py to match our needs

Variants to current system

Kyle and I talked for a bit. In order to simplify user experience and still have our account system, it would be great to have chat app/protocol, that had OAuth. We could link chat auth with our database and build gamification etc. on top of that.

Here's few things we discussed and their advantage/disadvantages

  • Slack

https://slack.com/ - They have OAuth, they support bots, but I couldn't figure out a way to embed their client to our frontend

  • Twitch.tv IRC server

OAuth present, IRC network, so no need to rewrite our bot logic in something else. Embeding could work either through iframe of their popout chat, or inject OAuth into irc command to connect

I haven't really explored the options indepth too much, as this requries a lot of thinking I cannot afford during exam period. So while I'm busy studying, you can talk here about different variants, solutions, or just say that current system is good enough (GameSurge auth through IRC, separate accounts in our database).

This post might be a bit chaotic, if you need any clarifications, lemme know

Player database restructuring

I'd love to hear what do you think new database architecture should look like, please add on to these, or say if you think some of them are extra. Also if you come up with shorter/better alternative name, please say so.

We don't want to build account system, it's ok to rely on GameSurge so far. But having extra information for potentional player profile pages is good.

  • ID (INT)
  • Created (TEXT - with date)
  • Name (TEXT)
  • About (TEXT)
    • Markdown?
  • Vouched (1/0)
  • Judge (1/0)
  • Admin (1/0)
  • Warnings (INT)

For both Constructed and Limited

  • ConstructedHiddenRating (REAL)
  • ConstructedPublicRatingFactor (INT)
  • ConstructedPublicRating (INT)
  • CGamesPlayed (INT)
  • CGamesWon (INT)
  • CGamesLost (INT)
  • CMathcesPlayed (INT)
  • CMatchesWon (INT)
  • CMatchesLost (INT)

New results database

  • GameID (INT)
  • Winner (TEXT)
  • WinnerGameScore (INT)
  • Loser (TEXT)
  • LoserGameScore (INT)

anything else that should be stored?

Games database restructuring

Not much has to change here

  • ID (INT)
  • Running (1/0)
  • MatchesPlayed (INT)
  • QueueType (TEXT) - equivalent to pod size, but more understandable (Sealed2, Sealed4)
  • Leaderboard (TEXT) - Limited/constructed
  • Player 1 (TEXT)
  • ...
  • Player 8 (TEXT)

Another option is to have multiple tables for each QueueType and their public ID then be QueueType-number

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.