Skip to content

Commit 50db595

Browse files
authored
Merge pull request #49 from Dremixbotdev/patch-3
Update __init__.py
2 parents 01ab879 + 30edc0b commit 50db595

File tree

3 files changed

+18
-8
lines changed

3 files changed

+18
-8
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58-
reported by contacting the project team at [email protected]. All
58+
reported by contacting the project team at [email protected]. All
5959
complaints will be reviewed and investigated and will result in a response that
6060
is deemed necessary and appropriate to the circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.
@@ -73,4 +73,4 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
7373
[homepage]: https://www.contributor-covenant.org
7474

7575
For answers to common questions about this code of conduct, see
76-
https://www.contributor-covenant.org/faq
76+
https://www.contributor-covenant.org/faq

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

teapot/__init__.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import datetime
2+
import platform
3+
import socket
4+
import sys
5+
16
from .cogs import *
27
from .managers import *
38
from .tools import *
@@ -16,12 +21,10 @@ def config_version():
1621

1722

1823
def time():
19-
import datetime
2024
return datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
2125

2226

2327
def year():
24-
import datetime
2528
return str(datetime.datetime.now().year)
2629

2730

@@ -33,20 +36,16 @@ def copyright():
3336

3437

3538
def platform():
36-
import platform
3739
return platform.system() + " " + platform.release()
3840

3941

4042
def hostname():
41-
import socket
4243
return socket.gethostname()
4344

4445

4546
def ip():
46-
import socket
4747
return socket.gethostbyname(hostname())
4848

4949

5050
def path():
51-
import sys
5251
return sys.path

0 commit comments

Comments
 (0)