2015-05-09 16:34:53 +02:00
|
|
|
function run(msg, matches)
|
2015-08-03 17:15:50 +02:00
|
|
|
text = os.date("Heute ist %A, der %d. %B %Y und es ist %H:%M:%S Uhr")
|
2015-07-07 14:26:58 +02:00
|
|
|
|
|
|
|
-- Days
|
|
|
|
text = string.gsub(text, "Monday", "Montag")
|
|
|
|
text = string.gsub(text, "Tuesday", "Dienstag")
|
|
|
|
text = string.gsub(text, "Wednesday", "Mittwoch")
|
|
|
|
text = string.gsub(text, "Thursday", "Donnerstag")
|
|
|
|
text = string.gsub(text, "Friday", "Freitag")
|
2015-07-09 01:00:24 +02:00
|
|
|
text = string.gsub(text, "Saturday", "Samstag")
|
2015-07-07 14:26:58 +02:00
|
|
|
text = string.gsub(text, "Sunday", "Sonntag")
|
|
|
|
|
|
|
|
-- Months
|
|
|
|
text = string.gsub(text, "January", "Januar")
|
|
|
|
text = string.gsub(text, "February", "Februar")
|
|
|
|
text = string.gsub(text, "March", "März")
|
|
|
|
text = string.gsub(text, "April", "April")
|
|
|
|
text = string.gsub(text, "May", "Mai")
|
|
|
|
text = string.gsub(text, "June", "Juni")
|
|
|
|
text = string.gsub(text, "July", "Juli")
|
|
|
|
text = string.gsub(text, "August", "August")
|
|
|
|
text = string.gsub(text, "September", "September")
|
|
|
|
text = string.gsub(text, "October", "Oktober")
|
|
|
|
text = string.gsub(text, "November", "November")
|
|
|
|
text = string.gsub(text, "December", "Dezember")
|
|
|
|
|
|
|
|
return text
|
2015-05-09 16:34:53 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return {
|
2015-06-10 19:02:41 +02:00
|
|
|
description = "Zeigt das aktuelle Datum und Zeit an",
|
2016-06-22 13:59:06 +02:00
|
|
|
usage = {"/#date"},
|
|
|
|
patterns = {"^#[Dd][Aa][Tt][Ee]$","^#[Dd][Aa][Tt][Uu][Mm]$"},
|
2015-05-09 16:34:53 +02:00
|
|
|
run = run
|
|
|
|
}
|
2015-07-09 01:00:24 +02:00
|
|
|
--by Akamaru [https://ponywave.de]
|