Import order...
This commit is contained in:
parent
36a3e5c49b
commit
45c4b55cf2
@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
|
||||
from docopt import Dict as DocoptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import requests
|
||||
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import time
|
||||
|
||||
import irc3
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import random
|
||||
|
||||
|
||||
import irc3
|
||||
import feedparser
|
||||
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,11 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from datetime import datetime, timedelta
|
||||
import asyncio
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
import irc3
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
import irc3
|
||||
|
||||
from . import DatabasePlugin
|
||||
from ..utils import time_delta
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import requests
|
||||
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import random
|
||||
|
||||
import irc3
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,7 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import requests
|
||||
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,9 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import irc3
|
||||
import os
|
||||
import re
|
||||
import requests
|
||||
|
||||
import irc3
|
||||
import requests
|
||||
from docopt import Dict as DocOptDict
|
||||
from irc3.plugins.command import command
|
||||
from irc3.utils import IrcString
|
||||
|
@ -1,6 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import re
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
|
||||
@ -32,6 +31,7 @@ def time_delta(text: str) -> timedelta:
|
||||
return timedelta(**{unit: num})
|
||||
|
||||
|
||||
# Stolen from uguubot - useless?
|
||||
def time_since(date: datetime, now: datetime = None):
|
||||
"""
|
||||
Takes two datetime objects and returns the time between d and now
|
||||
|
4
repl.py
4
repl.py
@ -2,15 +2,13 @@
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
from pprint import pprint
|
||||
|
||||
import requests
|
||||
import psycopg2
|
||||
from dotenv import load_dotenv
|
||||
from psycopg2.extras import DictCursor
|
||||
|
||||
# Handy alias for pprint
|
||||
pp = pprint
|
||||
from nxy.utils import *
|
||||
|
||||
# Load dotenv from DOTENV_FILE variable (or the default one)
|
||||
load_dotenv(os.environ.get('DOTENV_FILE', '.env'))
|
||||
|
Loading…
Reference in New Issue
Block a user