Skip to content

Commit

Permalink
Temporarily remove suport for evaling under 3.10
Browse files Browse the repository at this point in the history
This is until snekbox supports multi-version natively
python-discord/snekbox#158
  • Loading branch information
ChrisLovering committed May 30, 2023
1 parent ec47f94 commit 7c7a4f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bot/exts/utils/snekbox/_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,15 @@ def build_python_version_switcher_view(
if current_python_version == "3.10":
alt_python_version = "3.11"
else:
alt_python_version = "3.10"
alt_python_version = "3.10" # noqa: F841

view = interactions.ViewWithUserAndRoleCheck(
allowed_users=(ctx.author.id,),
allowed_roles=MODERATION_ROLES,
)
view.add_item(PythonVersionSwitcherButton(alt_python_version, self, ctx, job))
# Temp disabled until snekbox multi-version support is complete
# https://github.com/python-discord/snekbox/issues/158
# view.add_item(PythonVersionSwitcherButton(alt_python_version, self, ctx, job))
view.add_item(interactions.DeleteMessageButton())

return view
Expand Down

0 comments on commit 7c7a4f3

Please sign in to comment.