ddnet / ddnet-discordbot

10 stars 12 forks source link

Set bot as initial_ready if map channel got reset from evaluated maps #79

Closed murpii closed 7 months ago

murpii commented 7 months ago

As suggested by VeNa on Discord:

@murpi is it possible to make map in ready section in 1 ready if the map was ready before, or if a map is ready and mapper post another version, it doesn't move from ready section

Essentially, if a map channel state was set to ready, and the mapper uploads an updated map version in the map channel, the bot shifts the channel back to the regular testing category and changes the channel state back to testing. This means the channel needs 2 ready's again in order to be moved back to evaluated maps. This adjustment should change it so it only one ready is required by setting the bot as the initial_ready and the state to RC. Kinda hacky, but I can't really think of a better way atm.