changed unix command once more
This commit is contained in:
parent
7c0b21757e
commit
5e1aa035da
1 changed files with 3 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
from redbot.core import commands, checks
|
from redbot.core import commands, checks
|
||||||
import discord
|
import discord
|
||||||
from datetime import datetime
|
from datetime import datetime, timezone
|
||||||
|
|
||||||
class Galaxy(commands.Cog):
|
class Galaxy(commands.Cog):
|
||||||
"""Custom cog intended for use on the Galaxy discord server."""
|
"""Custom cog intended for use on the Galaxy discord server."""
|
||||||
|
@ -11,7 +11,8 @@ class Galaxy(commands.Cog):
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def unix(self, ctx):
|
async def unix(self, ctx):
|
||||||
"""Posts the current Unix timestamp."""
|
"""Posts the current Unix timestamp."""
|
||||||
await ctx.send(datetime.utcnow())
|
timestamp = datetime.timestamp(datetime.now())
|
||||||
|
await ctx.send(timestamp)
|
||||||
|
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
|
|
Loading…
Reference in a new issue