Enable starboard whitelist
Some checks failed
Build and Publish Jimmy.2 / build_and_publish (push) Has been cancelled
Some checks failed
Build and Publish Jimmy.2 / build_and_publish (push) Has been cancelled
This commit is contained in:
parent
da7d122f14
commit
d3a8d4fa7e
2 changed files with 8 additions and 0 deletions
|
@ -82,3 +82,8 @@ ip_servers = [
|
||||||
"ip.i-am.nexus",
|
"ip.i-am.nexus",
|
||||||
"ip.shronk.tech"
|
"ip.shronk.tech"
|
||||||
] # A list of SHRoNK IP servers. See: https://github.com/SHRoNK-Corporation/shronk-ip-spec/blob/main/RFS0001.md
|
] # 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.
|
||||||
|
|
|
@ -120,6 +120,9 @@ class Starboard(commands.Cog):
|
||||||
elif payload.emoji != self.emoji:
|
elif payload.emoji != self.emoji:
|
||||||
# Was not a star emoji, ignore.
|
# Was not a star emoji, ignore.
|
||||||
return
|
return
|
||||||
|
elif self.config.get("whitelist"):
|
||||||
|
if payload.guild_id not in self.config["whitelist"]:
|
||||||
|
return
|
||||||
|
|
||||||
if not await self.redis.ping():
|
if not await self.redis.ping():
|
||||||
# Could not contact redis, not much point trying anything else without the database
|
# Could not contact redis, not much point trying anything else without the database
|
||||||
|
|
Loading…
Reference in a new issue