From 8eaa88d4cef5e732e37fd760eea1157de244cb4b Mon Sep 17 00:00:00 2001
From: jesusalva
By playing you agree and abide to the Terms of Service, available at: +
+ +Last ToS update: 2018-02-24 +
++
+Our Staff will never ask for your password. You are the sole responsible for +
+its safety! +
+If you ever run in trouble, try contacting a GM with @request Help me! +
+Please enjoy our server, and have fun! +
++
+Latest release: 2018-03-04 (Easter stuff, bug fixes) +
+Never miss a release! Follow our Discord Channel! +
++
+Your head aches. Your vision is dizzy. A ship appears in your front. Oh no, +
+please don't tell me this is Evol! +
++
+You may meet familiar faces and/or names, and even places you think that you +
+know, but don't be fooled - things are different here, and work different here. +
+Awake in Nard ship, visit Candor, journey to Tulimshar - the game offers the +
+basic stuff a MMORPG needs. Use Tulimshar's mines to grind - this is not an +
+easy game, but it is definitively fun, specially with friends. +
++
+Our Game Masters often arrange events which are announced by Discord/IRC! +
+There is also a Daily Login Bonus, to encourage you to keep playing! +
+Please bear the development stages with us. There are balance problems, and +
+various items are NPC-Only, and even bugs could be lurking here and there - +
+give us feedback at #world channel and, who knows, you may be rewarded if you +
+find a bug! +
++
+We want to express our gratitude here to Saulc, for sponsoring this server. +
+We also want to thanks to all testers: Thanks, you've did a great job! +
+And by last, our gratitude to every developer and contributor who made this possible! +
++
+Enjoy gaming, and leave feedback at Discord! +
+The second release is already being baked! +
++
+-- Your TMW2 Team +
+March 2018 +
++
+You can check out this page for older entries: +
+ +]]> + + + + + diff --git a/web/newsfeed.py b/web/newsfeed.py new file mode 100755 index 0000000..91c6898 --- /dev/null +++ b/web/newsfeed.py @@ -0,0 +1,98 @@ +#! /usr/bin/env python +# -*- coding: utf8 -*- +# +# Copyright (C) 2018 The Mana World 2 +# Author: Jonatas N. (Jesusalva) + +import datetime +date=str(datetime.date.today()) +fulldate=str(datetime.datetime.utcnow().isoformat()) + +# Open file (Dt) and export to "old". (Src) is current news +dt=open("nf_main.xml", "r") +old=[] +for line in dt: + old.append(line) +dt.close() +dt=open("nf_main.xml", "w") +src=open("../update/news.txt", "r") + + +# Read news and prepare header +ns=open("../update/news.txt", "r") + + +# Function to markup it, and strip new lines +def markup(r): + r=r.replace('##0', '') + r=r.replace('##1', '') + r=r.replace('##2', '') + r=r.replace('##3', '') + r=r.replace('##4', '') + r=r.replace('##5', '') + r=r.replace('##6', '') + r=r.replace('##7', '') + r=r.replace('##8', '') + r=r.replace('##9', '') + r=r.replace('##B', '') + r=r.replace('##b', '') + r=r.replace('[@@', '') + r=r.replace('@@]', '') + return r +def nn(r): + return r.replace('\n', '') + +# Write the news, and close that file +dt.write('By playing you agree and abide to the Terms of Service, available at: +
+ +Last ToS update: 2018-02-24 +
++
+Our Staff will never ask for your password. You are the sole responsible for +
+its safety! +
+If you ever run in trouble, try contacting a GM with @request Help me! +
+Please enjoy our server, and have fun! +
++
+Latest release: 2018-03-04 (Easter stuff, bug fixes) +
+Never miss a release! Follow our Discord Channel! +
++
+Your head aches. Your vision is dizzy. A ship appears in your front. Oh no, +
+please don't tell me this is Evol! +
++
+You may meet familiar faces and/or names, and even places you think that you +
+know, but don't be fooled - things are different here, and work different here. +
+Awake in Nard ship, visit Candor, journey to Tulimshar - the game offers the +
+basic stuff a MMORPG needs. Use Tulimshar's mines to grind - this is not an +
+easy game, but it is definitively fun, specially with friends. +
++
+Our Game Masters often arrange events which are announced by Discord/IRC! +
+There is also a Daily Login Bonus, to encourage you to keep playing! +
+Please bear the development stages with us. There are balance problems, and +
+various items are NPC-Only, and even bugs could be lurking here and there - +
+give us feedback at #world channel and, who knows, you may be rewarded if you +
+find a bug! +
++
+We want to express our gratitude here to Saulc, for sponsoring this server. +
+We also want to thanks to all testers: Thanks, you've did a great job! +
+And by last, our gratitude to every developer and contributor who made this possible! +
++
+Enjoy gaming, and leave feedback at Discord! +
+The second release is already being baked! +
++
+-- Your TMW2 Team +
+March 2018 +
++
+You can check out this page for older entries: +
+ +]]>