ZeroK-RTS / Zero-K-Infrastructure

Website, lobby launcher and server, steam deployment, .NET based tools and other vital parts of Zero-K infrastructure
GNU General Public License v3.0
53 stars 52 forks source link

consider !roll #2805

Closed sprunk closed 3 years ago

sprunk commented 3 years ago

Parzival/Qrow wants some command to help organize tourneys

[05:36] Saika!: yo, is there a chance you could add a rps command to zk? [05:36] Saika!: we need a way of randomizing ban starts [05:37] Sprung: dunno, sounds like bloat [05:37] Sprung: use random.org or something [05:39] Sprung: most discord bots provide dice rolls too, maybe even starlight does [05:39] Saika!: hmm the issue is not all participants have discord/no way of enforcing that rule [05:39] Saika!: also, we'd like to keep as much contained in zk as possible [05:39] Saika!: is making a coin flip command server side that much bloat? [05:40] Saika!: also, it needs to be verifiable in chat logs [05:40] Saika!: (the result)

Legomenon-gh commented 3 years ago

I'll implement it if it's likely to get merged (and is felt to be appropriate for the server to provide). Dunno if that's the case

DeinFreund commented 3 years ago

Great! I don't think anyone objects.

sprunk commented 3 years ago

My preferred solution would be to configure Starlight (the discord bot) such that non-admins can use its !roll, and to fix Nightwatch so it relays what Starlight says to the lobby.

Legomenon-gh commented 3 years ago

That may be a better solution if Nightwatch doesn't suffer from the bridge flakiness effect, though I have no access to the Discord integrations obviously so I can't make any changes on that side myself.

Unless you think it's a simpler fix than I think it is and can be done in the next month or so, I'll add a CmdRoll as a bandaid for Qrow's season two of tournaments coming up soon, and that command can just be reverted once the bot solution is available.

ParzivalX commented 3 years ago

Another question to consider here is "does Starlight work in rooms?". This is where I think most commands for this sort of nature are likely to be performed.

I think CmdRoll is a good enough bandaid for now.