diff --git a/config.example.toml b/config.example.toml index f40b85f..bb3a32a 100644 --- a/config.example.toml +++ b/config.example.toml @@ -82,3 +82,8 @@ ip_servers = [ "ip.i-am.nexus", "ip.shronk.tech" ] # A list of SHRoNK IP servers. See: https://github.com/SHRoNK-Corporation/shronk-ip-spec/blob/main/RFS0001.md + +[starboard] +enabled = false # disables starboard entirely +emoji = "⭐" # the emoji to use. Defaults to the plain star. +whitelist = [994710566612500550] # An array of server IDs to whitelist. Omitted means all servers. diff --git a/src/cogs/starboard.py b/src/cogs/starboard.py index 6bcf9d8..989fb3d 100644 --- a/src/cogs/starboard.py +++ b/src/cogs/starboard.py @@ -120,6 +120,9 @@ class Starboard(commands.Cog): elif payload.emoji != self.emoji: # Was not a star emoji, ignore. return + elif self.config.get("whitelist"): + if payload.guild_id not in self.config["whitelist"]: + return if not await self.redis.ping(): # Could not contact redis, not much point trying anything else without the database