add a #changelog channel in jannycord

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-30 04:03:48 +02:00
parent 1c12a6a82f
commit 2aaed858d2
2 changed files with 4 additions and 4 deletions

View File

@ -44,10 +44,10 @@ def set_nick(user, nick):
data={"nick": nick}
requests.patch(url, headers=headers, json=data, timeout=5)
def send_discord_message(message):
def send_changelog_message(message):
data={"content": message}
requests.post("https://discordapp.com/api/channels/924485611715452940/messages", headers=headers, data=data, timeout=5)
requests.post("https://discordapp.com/api/channels/924486091795484732/messages", headers=headers, data=data, timeout=5)
requests.post("https://discordapp.com/api/channels/1013992002624426015/messages", headers=headers, data=data, timeout=5)
def send_wpd_message(message):
data={"content": message}

View File

@ -71,7 +71,7 @@ def publish(pid, v):
cache.delete_memoized(User.userpagelisting)
if (v.admin_level > 0 or v.has_badge(3)) and post.sub == 'changelog':
send_discord_message(post.permalink)
send_changelog_message(post.permalink)
if SITE == 'watchpeopledie.co':
send_wpd_message(post.permalink)
@ -1063,7 +1063,7 @@ def submit_post(v, sub=None):
cache.delete_memoized(User.userpagelisting)
if (v.admin_level > 0 or v.has_badge(3)) and post.sub == 'changelog' and not post.private:
send_discord_message(post.permalink)
send_changelog_message(post.permalink)
if not post.private and SITE == 'watchpeopledie.co':
send_wpd_message(post.permalink)