Skip to content

Commit

Permalink
Merge pull request #12 from hhollenstain/fix-yt-dl-again
Browse files Browse the repository at this point in the history
1.0.0 rewrite is now main part of discord.py
  • Loading branch information
hhollenstain authored May 25, 2019
2 parents 4a4cfcb + 70093fb commit 2c2854d
Show file tree
Hide file tree
Showing 15 changed files with 420 additions and 149 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: init check dist publish

init: req
init:
pipenv install -e "."
pipenv run python setup.py develop

Expand All @@ -9,16 +9,12 @@ check: test
pipenv run pylint setup.py
#pipenv run pylint tamago/*.py

test: req
test:
pipenv install -e ".[test]"
pipenv run python setup.py develop

dist: init check req
pipenv run python setup.py sdist bdist_wheel install

live:
pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py
pip install -e "."

req:
pipenv run pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "pypi"
[dev-packages]

[packages]
"e1839a8" = {path = ".", editable = true}
"e1839a8" = {path = ".", extras = ["test"], editable = true}

[requires]
python_version = "3.6"
526 changes: 399 additions & 127 deletions Pipfile.lock

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'asyncio',
'aiomeasures',
'coloredlogs',
'discord.py==1.1.1',
'over_stats',
'oyaml',
'pip==18.0',
Expand All @@ -27,10 +28,6 @@
]
}

DEPENDENCY_LINKS = [
'git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py==1.0.0',
]

setup(
name='tamago',
version=tamago.VERSION,
Expand Down
2 changes: 1 addition & 1 deletion tamago/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
init - version info
"""
VERSION_INFO = (0, 2, 1)
VERSION_INFO = (1, 0, 0)
VERSION = '.'.join(str(c) for c in VERSION_INFO)
2 changes: 1 addition & 1 deletion tamago/lib/plugins/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

LOG = logging.getLogger(__name__)

class Crypto:
class Crypto(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/fun.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

LOG = logging.getLogger(__name__)

class Fun:
class Fun(commands.Cog):
def __init__(self, tamago):
self.tamago = tamago

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

LOG = logging.getLogger(__name__)

class Help:
class Help(commands.Cog):
def __init__(self, client):
self.client = client
self.client.remove_command('help')
Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/mod_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

LOG = logging.getLogger(__name__)

class ModTools:
class ModTools(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def destroy(self, guild):
return self.bot.loop.create_task(self._cog.cleanup(guild))


class Music:
class Music(commands.Cog):
"""Music related commands."""

__slots__ = ('bot', 'players')
Expand Down
8 changes: 7 additions & 1 deletion tamago/lib/plugins/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@

LOG = logging.getLogger(__name__)

class Ping:

# class Greetings(commands.Cog):
# def __init__(self, bot):
# self.bot = bot
# self._last_member = None

class Ping(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

LOG = logging.getLogger(__name__)

class Server:
class Server(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/stats_overwatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
'top': 5,
}

class StatsOverwatch:
class StatsOverwatch(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

LOG = logging.getLogger(__name__)

class Voice:
class Voice(commands.Cog):
def __init__(self, client):
self.client = client

Expand Down
2 changes: 1 addition & 1 deletion tamago/lib/plugins/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_weather(location, owm_api_key):

return weather

class Weather:
class Weather(commands.Cog):
def __init__(self, tamago):
self.tamago = tamago

Expand Down

0 comments on commit 2c2854d

Please sign in to comment.