kiyoopoon / multiserver-bumper

A multiserver auto bump bot
MIT License
6 stars 8 forks source link

Deprecation warning fix + `LOG_CHANNEL` optional feature + bug fix #3

Closed CodeByAidan closed 5 months ago

CodeByAidan commented 5 months ago

Fixed up the deprecation warning, and made the LOG_CHANNEL an optional feature. Also added a walrus operator (:=) to simplify the assignment -> conditional.

There was a major issue where you can have multiple bots that have a /bump command it would trigger the first one found. Instead you can use the specific id/application_id found in the attributes of discord.commands.SlashCommand.

kiyoopoon commented 5 months ago

Looks good!