Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to dpy2 #230

Merged
merged 14 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Style Check with Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Update translations
uses: crowdin/github-action@v1.8.1
uses: crowdin/github-action@v1.13.1
with:
download_translations: true
commit_message: '[automated] update translations from Crowdin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/isort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Style Check with Isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.8"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_language_version:
python: python3.11
repos:
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
2 changes: 1 addition & 1 deletion adminutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ async def setup_after_ready(bot):


async def setup(bot):
create_task(setup_after_ready(bot))
await create_task(setup_after_ready(bot))
2 changes: 1 addition & 1 deletion adminutils/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"install_msg": "Thanks for install.\nThis cog contains some useful commands for server administrators.",
"short": "Useful commands for server administrators.",
"description": "Useful commands for server administrators.",
"min_bot_version": "3.4.0",
"min_bot_version": "3.5.0",
"tags": [
"admin",
"emoji",
Expand Down
4 changes: 2 additions & 2 deletions datautils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ async def setup_after_ready(bot):
for alias in command.aliases:
if bot.get_command(alias):
command.aliases[command.aliases.index(alias)] = f"du{alias}"
bot.add_cog(cog)
await bot.add_cog(cog)


def setup(bot):
async def setup(bot):
create_task(setup_after_ready(bot))
4 changes: 2 additions & 2 deletions datautils/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"server",
"permissions"
],
"min_bot_version": "3.4.8",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"requirements": [
"tabulate",
"wcwidth",
Expand Down
4 changes: 2 additions & 2 deletions generalchannel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
)


def setup(bot):
bot.add_cog(GeneralChannel(bot))
async def setup(bot):
await bot.add_cog(GeneralChannel(bot))
2 changes: 1 addition & 1 deletion generalchannel/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"install_msg": "Thanks for install.",
"short": "Allow users to manage #general channel's name and topic",
"description": "Allow users to manage #general channel's name and topic",
"max_bot_version": "3.4.99",
"max_bot_version": "3.5.99",
"tags": [
"#general",
"channel",
Expand Down
1 change: 1 addition & 0 deletions godvilledata/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"install_msg": "Thanks for install.\n`[p]godville` shows info about russian version of game (godville.net)\n`[p]godvillegame` shows info about \"global\" version of game (godvillegame.com)",
"short": "Get data about Godville profiles",
"description": "Get data about godville.net (russian) and godvillegame.com profiles",
"max_bot_version": "3.5.99",
"tags": [
"godville",
"ZPG"
Expand Down
4 changes: 2 additions & 2 deletions massthings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
)


def setup(bot):
bot.add_cog(MassThings(bot))
async def setup(bot):
await bot.add_cog(MassThings(bot))
4 changes: 2 additions & 2 deletions massthings/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"short": "⚠Cog for doing things in bulk.⚠",
"description": "⚠Cog for doing things in bulk.⚠\n⚠️ This cog may contain commands that may (or may not) be against Discord API terms. Use this at your own risk, cog author is not responsible for anything that happens during usage of this cog.",
"tags": [],
"min_bot_version": "3.0.0",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"requirements": ["tabulate"],
"end_user_data_statement": "This cog does not persistently store data or metadata about users.",
"hidden": true
Expand Down
2 changes: 1 addition & 1 deletion messageslog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
async def setup(bot):
cog = MessagesLog(bot)
await cog.initialize()
bot.add_cog(cog)
await bot.add_cog(cog)
4 changes: 2 additions & 2 deletions messageslog/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"install_msg": "Thanks for install.",
"short": "Log deleted and edited messages to a specified channel",
"description": "Log deleted and edited messages to a specified channel",
"min_bot_version": "3.4.0",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"tags": [
"messages",
"logs"
Expand Down
4 changes: 2 additions & 2 deletions minecraftdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
)


def setup(bot):
bot.add_cog(MinecraftData(bot))
async def setup(bot):
await bot.add_cog(MinecraftData(bot))
2 changes: 1 addition & 1 deletion minecraftdata/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"game"
],
"min_python_version": [3, 8, 0],
"max_bot_version": "3.4.99",
"max_bot_version": "3.5.99",
"requirements": [
"tabulate",
"wcwidth",
Expand Down
4 changes: 2 additions & 2 deletions moreutils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ async def setup_after_ready(bot):
for alias in command.aliases:
if bot.get_command(alias):
command.aliases[command.aliases.index(alias)] = f"mu{alias}"
bot.add_cog(cog)
await bot.add_cog(cog)


def setup(bot):
async def setup(bot):
create_task(setup_after_ready(bot))
2 changes: 1 addition & 1 deletion moreutils/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"someone",
"color"
],
"max_bot_version": "3.4.99",
"max_bot_version": "3.5.99",
"requirements": [
"tabulate"
],
Expand Down
4 changes: 2 additions & 2 deletions smmdata/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
)


def setup(bot):
bot.add_cog(SMMData(bot))
async def setup(bot):
await bot.add_cog(SMMData(bot))
2 changes: 1 addition & 1 deletion smmdata/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"install_msg": "Thanks for install.",
"short": "This cog shows SMM-related data",
"max_bot_version": "3.4.99",
"max_bot_version": "3.5.99",
"description": "This cog shows Super Mario Maker-related data. You can check levels and level designers",
"tags": [
"mario",
Expand Down
4 changes: 2 additions & 2 deletions translators/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
)


def setup(bot):
bot.add_cog(Translators(bot))
async def setup(bot):
await bot.add_cog(Translators(bot))
4 changes: 2 additions & 2 deletions translators/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"install_msg": "Thanks for install.\nFor Yandex.Translate you will need to set apikey (`[p]ytapikey`)",
"short": "Useful (and not) translators",
"description": "Useful (and not) translators",
"min_bot_version": "3.4.1",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"tags": [
"translation",
"translate",
Expand Down
4 changes: 2 additions & 2 deletions vocadb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
__red_end_user_data_statement__ = "This cog does not persistently store any PII data about users."


def setup(bot):
bot.add_cog(VocaDB(bot))
async def setup(bot):
await bot.add_cog(VocaDB(bot))
4 changes: 2 additions & 2 deletions vocadb/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"required_cogs": {},
"requirements": [],
"tags": ["vocadb", "vocaloid"],
"min_bot_version": "3.4.12",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"hidden": false,
"disabled": false,
"type": "COG"
Expand Down
4 changes: 2 additions & 2 deletions weather/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
)


def setup(bot):
bot.add_cog(Weather(bot))
async def setup(bot):
await bot.add_cog(Weather(bot))
4 changes: 2 additions & 2 deletions weather/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"install_msg": "Thanks for install.\nDon't forget to set api key (`[p]forecastapi`)\nIf you don't have registered DarkSky API key, this cog will be useless to you.\nDarkSky API closing at end of ~~2021~~ 2022 and im aware of this.",
"short": "Weather forecast",
"description": "Weather forecast. Requires \"semi-private\" DarkSky API key. For more info: https://blog.darksky.net",
"min_bot_version": "3.2.1",
"max_bot_version": "3.4.99",
"min_bot_version": "3.5.0",
"max_bot_version": "3.5.99",
"tags": [
"weather",
"forecast"
Expand Down
Loading