Änderung der Commands von / auf #
Kleine Bugfixes
This commit is contained in:
@ -113,7 +113,7 @@ function getformattedLocalTime(area)
|
||||
end
|
||||
|
||||
function run(msg, matches)
|
||||
if string.match(msg.text, "^/[Z|z]eit$") or string.match(msg.text, "^/[T|t]ime$") then
|
||||
if string.match(msg.text, "^#[Zz]eit$") or string.match(msg.text, "^#[Tt]ime$") then
|
||||
text = os.date("Es ist %H:%M:%S Uhr")
|
||||
return text
|
||||
else
|
||||
@ -123,7 +123,7 @@ end
|
||||
|
||||
return {
|
||||
description = "Zeigt die lokale Zeit in einer Zeitzone an",
|
||||
usage = {'/zeit [Land/Ort]'},
|
||||
patterns = {'^/[Z|z]eit (.*)$','^/[T|t]ime (.*)$','^/[Z|z]eit$','^/[T|t]ime$'},
|
||||
usage = {'#zeit [Land/Ort]'},
|
||||
patterns = {'^#[Zz]eit (.*)$','^#[Tt]ime (.*)$','^/#[Zz]eit$','^#[Tt]ime$'},
|
||||
run = run
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user