-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy path__init__.py
More file actions
48 lines (29 loc) · 744 Bytes
/
__init__.py
File metadata and controls
48 lines (29 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import datetime
import platform
import socket
import sys
from .cogs import *
from .managers import *
from .tools import *
from .config import *
from .events import *
from .messages import *
from .setup import *
def version():
return "v0.0.2"
def config_version():
return "0.1" # do not edit this!
def time():
return datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
def year():
return str(datetime.datetime.now().year)
def copyright():
return f"© 2020-{year()} RedCoke Development"
def get_platform():
return platform.system() + " " + platform.release()
def hostname():
return socket.gethostname()
def ip():
return socket.gethostbyname(hostname())
def path():
return sys.path