bugfix.. maybe?

This commit is contained in:
Mark Hoekveen
2018-01-22 21:32:39 +01:00
parent f0d5cc0118
commit 8f85fce946
+9 -8
View File
@@ -134,6 +134,15 @@ class Shitpost(object):
yield from ctx.channel.send(ctx.author.mention + ' Het is nu ' + datetime.now().strftime('%H:%M'))
#Used by function weer()
@commands.command(pass_context=True, hidden=True)
@asyncio.coroutine
def weer(self, ctx, location="Leiden"):
"""Vertelt je het weer.
Omdat je te lui bent om naar buiten te kijken.
Oant Moarn!
"""
weatherIconTranslation = {
"zonnig" : ":sun_with_face:",
"bliksem" : ":cloud_lightning:",
@@ -149,14 +158,6 @@ class Shitpost(object):
"helderenacht" : ":first_quarter_moon_with_face:",
"wolkennacht" : ":cloud:"
}
@commands.command(pass_context=True, hidden=True)
@asyncio.coroutine
def weer(self, ctx, location="Leiden"):
"""Vertelt je het weer.
Omdat je te lui bent om naar buiten te kijken.
Oant Moarn!
"""
if(location == ""):
location = "Leiden"