Coder Social home page Coder Social logo

megagame-controller's Introduction

Megagame Controller

This is a Discord bot created for megagames. The current iteration is written in Discord.py/Django, with an incomplete web frontend written in Quasar (Vue.js).

Features

Trades

Teams can create trades to exchange any currencies that they have. This normally comes down to a certain amount of the primary currency for some other currencies. Teams must both accept the trade before it's completed.

Military Action

During turns in game, the control team can set up "payments", which require teams to pay a certain amount of the primary currency for some action.

UN Decisions

Similar to the military actions, the control team can set create custom payments for more custom action in the game. This can happen in channels that are only visible for certain roles on each team.

Future

I will be rewriting this project in Rust. Dealing with async Discord.py + sync Django caused a lot of issues, and Discord.py is no longer maintained. You'll see that there are many occurences of @sync_to_async and @async_to_sync in the codebase. It makes it even more difficult to maintain type knowledge across these transitions. Rust will help prevent many bugs while the bot is running, while these had to be iterated on many times with Python.

megagame-controller's People

Contributors

angelonfira avatar dependabot[bot] avatar

Watchers

 avatar  avatar

megagame-controller's Issues

Complete trade workflow

  • After choosing country, that view is edited with new channel link
  • Players can only see currencies that their role allows
  • Trade increases check all transactions to make sure team has enough
  • A trade can be made to control to make payments
  • Trades have to be confirmed from both ends
  • Choosing currencies is a dropdown

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.