Giter Club home page Giter Club logo

dominions-5-status's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar djmcgill avatar quantumnull avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dominions-5-status's Issues

[Request] Game reminders

!remindme <game> <number of turns> <message>

e.g. !remindme testgame 12 NAP with ermor expires: bot PMs you "NAP with ermor expires" after 12 turns have passed in testgame
!remindme 2 build fort in 98: bot PMs you "build fort in 98" after 2 turns have passed for the game named after the channel the reminder was created in

maybe also !reminder for channels

e.g. !reminder 6 peoples arena: bot messages the current channel "peoples arena" after 6 turns have passed for the game the reminder was created for

Significant issues compiling on systems with OpenSSL 1.1

Hi, I recently tried to compile this on several platforms (Ubuntu 18.04 WSL, Ubuntu 20.04 VM, Alpine 3.12) and had a lot of trouble compiling the code because several dependencies rely on OpenSSL v0.9.X. I followed the typical advice of installing libssl-dev and pkg-config but that didn't seem to make the problem go away.

I was able to successfully build the docker image at least. I was not able to pull the image due to permission issues so I had to build it.

Out of curiosity I attempted to update enough dependencies to stop having compilation issues with outdated OpenSSL dependencies. It eventually worked but some breaking API changes were made along the way (since the dependencies compiled, but then the main crate code stopped compiling).

It would be nice if the project were updated to make things less difficult on newer systems. This would not necessarily be trivial (again due to the necessity of rewriting and testing the code) but would be much appreciated.

I may take a shot at it myself. Let me know if you have any advice or any reasons why maybe this isn't worth pursuing (for all I know I may have just had something silly misconfigured).

add register-id-override-name command

this would be useful for: 1) mod nations not hosted on snek, or 2) when vanilla ids are overwritten for whatever reason (e.g. yomi in hellenika)
The idea being that you are registering as if you'd used register-id, but it ignores whatever it thinks the nation name "should" be, including "unknown", and uses whatever you give it instead.

Shouldn't be too bad from a technical perspective, since the db already has separate id and name columns, and there'd be a new case for the enum (BotNationIdentifier) that pulls from that table, one where both are filled as an override.

Recognise when games finish

When all players are defeated this turn except 1, the game is over. Maybe give it 24 hours then be deleted.

Don't crash when game crashes

When game server crashes, usually with an invalid map, it captures http connections. There is a timeout mechanism but clearly it doesn't work fully.

slash command improvements

On the whole they mostly work except the describe command says to use quotes when actually you should not use quotes so gotta add a param to it saying if it was invoked by slash or bang

Windows user here, don't know anything about anything, help

I got to this part of the instructions:

Run the command: docker run -it -d --restart unless-stopped -v /home/dmcgill9071/dom-5-bot/resources:/usr/src/myapp/resources --log-opt max-size=10m --log-opt max-file=5 eu.gcr.io/dom-5-status/dom-5-status except replace /home/dmcgill9071/dom-5-bot/resources with the location of your resource folder.

No idea what any of that is and of course docker is a Mac thing.

I don't know anything about bots. Installed rust for the first time. I'm stuck.

Fix duplicate turn pings

I don't know why it happens. Might be related to game reminders if I add a db flag for remembering when I've sent messages.

Support slash commands

Serenity examples: https://github.com/serenity-rs/serenity/blob/current/examples/e14_slash_commands/src/main.rs
Discord API docs: https://discord.com/developers/docs/interactions/slash-commands

Okay so on first glance these seem great, remembering which arguments in which order are used for which commands is a significant barrier to entry for new users and still a burden for experienced ones.

Having said that, it seems a totally different execution model so possibly another big refactor immediately after starting the last? Also it seems like you no longer have a choice of prefix and it's always forward-slash?

Need a way to send out notification manually for new turn

The bot was offline when the turn ran. Need to manually send out that notification. Or make the bot recognize if the current turn number does not match with the bot's last notification.

Edit: I mean I just want to send out the notification where it says how much time is left. Nothing new.

Notifications should be true by default

Why was the decision made to make notifications false by default? I want this to be a simple as possible for non-techies to use. Having to explain "hey you need to put in these two commands separately, don't copy and paste both at once" is annoying.

The help text needs to specify if it's true or false by default.

Another solution would be to provide a single line command to register and set notifications true in one line.

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.