mirror of
https://github.com/dragonlock2/matthewtran.com.git
synced 2026-06-28 01:58:34 +00:00
use discord instead of sendgrid
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
}
|
||||
],
|
||||
"website": {
|
||||
"sendgrid_key": "<SendGrid API key from https://app.sendgrid.com/settings/api_keys>"
|
||||
"discord_hook": "<Secret Discord Webhook>"
|
||||
},
|
||||
"minecraft": {
|
||||
"world": "main"
|
||||
|
||||
+2
-2
@@ -27,8 +27,8 @@ IMAGES = {
|
||||
|
||||
def generate(cfg):
|
||||
# website
|
||||
with open("website/sendgrid.key", "w") as f:
|
||||
f.write(cfg["website"]["sendgrid_key"])
|
||||
with open("website/discord.txt", "w") as f:
|
||||
f.write(cfg["website"]["discord_hook"])
|
||||
|
||||
# minecraft
|
||||
shutil.copy("minecraft/server.default", "minecraft/server.properties")
|
||||
|
||||
Reference in New Issue
Block a user