Page MenuHome1F616EMO Bugtracker

No OneTemporary

Size
3 KB
Referenced Files
None
Subscribers
None
diff --git a/initial_gazette_delivery/gazette-2024-12-26-02.txt b/initial_gazette_delivery/gazette-2024-12-26-02.txt
new file mode 100644
index 0000000..27a0aa2
--- /dev/null
+++ b/initial_gazette_delivery/gazette-2024-12-26-02.txt
@@ -0,0 +1,14 @@
+ref. ID: 2024-12-26-02
+
+The Gazette was established on 2024-12-23 to improve transparency on important moderation matters, such as new rules enactments, public consultations, and rules violation judgments. For this purpose, we are starting the Gazette Delivery Service. If you want to receive the latest moderation news, you can subscribe to the Gazette Delivery Service.
+
+The Gazette will be sent to the in-game email address @moderation:gazette_delivery. If you want to receive the Gazette in-game, please reply to this email. Moderators had been automatically included.
+
+This issue of the Gazette is sent to everyone. Starting from the next issue, the Gazette will only be sent to subscribed players.
+
+1F616EMO, 20:24, 26 December 2024 (HKT)
+
+Original: https://wiki-twi.1f616emo.xyz/s/a
+Other Gazettes on 2024-12-16: https://wiki-twi.1f616emo.xyz/s/b
+Gazettes index: https://wiki-twi.1f616emo.xyz/s/c
+If you want to unsubscribe, send an in-game email to 1F616EMO.
\ No newline at end of file
diff --git a/initial_gazette_delivery/init.lua b/initial_gazette_delivery/init.lua
new file mode 100644
index 0000000..644bf1c
--- /dev/null
+++ b/initial_gazette_delivery/init.lua
@@ -0,0 +1,45 @@
+-- twi_mods/initial_gazette_delivery/init.lua
+-- Delivery of G. 2024-12-27-02
+--[[
+ Copyright (C) 2024 1F616EMO
+
+ The MIT License (MIT)
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+]]
+
+local gazette_content
+do
+ local f = io.open(core.get_modpath("initial_gazette_delivery") .. DIR_DELIM .. "gazette-2024-12-26-02.txt", "r")
+ gazette_content = f:read("*a")
+ f:close()
+end
+
+core.register_on_newplayer(function(player)
+ local name = player:get_player_name()
+
+ local mail_packet = {
+ from = "1F616EMO",
+ to = name,
+ subject = "Gazette Delivery Service (G. 2024-12-26-02)",
+ body = gazette_content,
+ }
+
+ mail.send(mail_packet)
+end)
\ No newline at end of file
diff --git a/initial_gazette_delivery/mod.conf b/initial_gazette_delivery/mod.conf
new file mode 100644
index 0000000..39a92ff
--- /dev/null
+++ b/initial_gazette_delivery/mod.conf
@@ -0,0 +1,2 @@
+name = initial_gazette_delivery
+depends = mail
\ No newline at end of file

File Metadata

Mime Type
text/x-diff
Expires
Sat, Apr 4, 4:59 PM (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
71/56/92929f7d82de0eefbc3cf48772a8
Default Alt Text
(3 KB)

Event Timeline