Improved info commands
This commit is contained in:
@@ -1,26 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
bot Keksdose bot
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Discord bot for the Keksdose discord Server
|
||||
|
||||
:copyright: (c) 2022 sh-edraft.de
|
||||
:license: MIT, see LICENSE for more details.
|
||||
|
||||
"""
|
||||
|
||||
__title__ = 'bot_core'
|
||||
__author__ = 'Sven Heidemann'
|
||||
__license__ = 'MIT'
|
||||
__copyright__ = 'Copyright (c) 2022 sh-edraft.de'
|
||||
__version__ = '1.0.0.dev1'
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
|
||||
# imports:
|
||||
|
||||
VersionInfo = namedtuple('VersionInfo', 'major minor micro')
|
||||
version_info = VersionInfo(major='1', minor='0', micro='0.dev1')
|
||||
# imports
|
||||
|
1
src/bot_core/pipes/__init__.py
Normal file
1
src/bot_core/pipes/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
# imports
|
11
src/bot_core/pipes/date_time_offset_pipe.py
Normal file
11
src/bot_core/pipes/date_time_offset_pipe.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from datetime import datetime
|
||||
|
||||
from cpl_core.pipes.pipe_abc import PipeABC
|
||||
|
||||
|
||||
class DateTimeOffsetPipe(PipeABC):
|
||||
|
||||
def __init__(self): pass
|
||||
|
||||
def transform(self, value: datetime, *args):
|
||||
return value.strftime('%Y-%m-%d %H:%M')
|
Reference in New Issue
Block a user