Instruction stringlengths 13 145k | input_code stringlengths 35 390k | output_code stringlengths 35 390k |
|---|---|---|
Travis Failing Tests Because of bug in GetRemainingSubmissionTest
The Test `test_get_remaining_submission_when_submission_made_three_days_back` is failing for expected `remaining_submissions_this_month_count`
| apps/jobs/views.py
<|code_start|>import datetime
import json
import logging
from rest_framework import permissions, status
from rest_framework.decorators import (api_view,
authentication_classes,
permission_classes,
... | apps/jobs/views.py
<|code_start|>import datetime
import json
import logging
from rest_framework import permissions, status
from rest_framework.decorators import (api_view,
authentication_classes,
permission_classes,
... |
Add status in contact messages
## Current Behaviour
If there are multiple EvalAI admins then it is not clear in contact messages if one admin has resolved it or not.
## Expected Behaviour
Add a choice field in the contact model with status as `pending` and `resolved` having default as `pending`.
## Deliverabl... | apps/web/admin.py
<|code_start|>from django.contrib import admin
from base.admin import ImportExportTimeStampedAdmin
from .models import Contact, Team
@admin.register(Contact)
class ContactAdmin(admin.ModelAdmin):
list_display = ("name", "email", "message", "created_at", "modified_at",)
search_fields = ("em... | apps/web/admin.py
<|code_start|>from django.contrib import admin
from base.admin import ImportExportTimeStampedAdmin
from .models import Contact, Team
@admin.register(Contact)
class ContactAdmin(admin.ModelAdmin):
list_display = ("name", "email", "message", "status", "created_at", "modified_at",)
search_fie... |
Challenges not displayed on the challenge page if > 10
## Current Behaviour:
If there are more than 10 challenges on the challenge page then those challenges aren't displayed on the page.
## Expected Behaviour:
All the challenges should be displayed on the challenge page.
## Deliverables -
- [ ] The API alrea... | settings/common.py
<|code_start|>"""
Django settings for evalai project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1... | settings/common.py
<|code_start|>"""
Django settings for evalai project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1... |
Display error on UI while creating challenge
## Current Behaviour
When there are syntax errors in the `yaml` challenge configs then the challenge creation using zip [API](https://github.com/Cloud-CV/EvalAI/blob/c156f3d54c95861c4ac4eaef1d2e3419bab83a7a/apps/challenges/views.py#L575) fails with 500 Internal Server error... | apps/challenges/views.py
<|code_start|>import os
import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.contrib.auth.models import User
from django.core.files.base import ContentF... | apps/challenges/views.py
<|code_start|>import os
import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.contrib.auth.models import User
from django.core.files.base import ContentF... |
Outdated Python 2 code while creating challenge using zip file.
**Observed behavior:** When the serializer is not valid while creating a challenge, the error message never gets sent due to incompatible python 2 code which raises an error. Instead, the control is redirected to the except block, sending a generic message... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... |
Display error message when Leaderboard schema is missing while creating challenge.
**Expected behavior**: A message like the following `"There is no leaderboard schema in the YAML configuration file. Please add it and then try again!"` with 406 status code should be returned when the schema is missing from the YAML fil... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... |
django.setup() not required for Remote submission worker.
Currently, the remote worker doesn't use the Django app directly as the submission worker does, and only references the models through the public API.
And also the error: `django.core.exceptions.ImproperlyConfigured: Requested setting LOGGING_CONFIG, but sett... | scripts/workers/remote_submission_worker.py
<|code_start|>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import contextlib
import django
import importlib
import json
import logging
import os
import requests
import sig... | scripts/workers/remote_submission_worker.py
<|code_start|>from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import contextlib
import importlib
import json
import logging
import os
import requests
import signal
import shu... |
Outdated Python 2 code while creating challenge using zip file.
**Observed behavior:** When the serializer is not valid while creating a challenge, the error message never gets sent due to incompatible python 2 code which raises an error. Instead, the control is redirected to the except block, sending a generic message... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... | apps/challenges/views.py
<|code_start|>import csv
import logging
import random
import requests
import shutil
import string
import tempfile
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make_password
from djang... |
Add a feature to re-reun a submission by challenge host using UI
## Current Behaviour
If a challenge host wants to re-run a submission then the host has to email EvalAI admin to re-run a particular submission from admin.
## Expected Behaviour
The challenge host should be able to re-run the submission from the UI.
... | apps/jobs/urls.py
<|code_start|>from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^challenge/(?P<challenge_pk>[0-9]+)/"
r"challenge_phase/(?P<challenge_phase_pk>[0-9]+)/submission/(?P<submission_pk>[0-9]+)$",
views.change_submission_data_and_visibility,
na... | apps/jobs/urls.py
<|code_start|>from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^challenge/(?P<challenge_pk>[0-9]+)/"
r"challenge_phase/(?P<challenge_phase_pk>[0-9]+)/submission/(?P<submission_pk>[0-9]+)$",
views.change_submission_data_and_visibility,
na... |
submission error
- the expected behavior:
when submitting a file to the challenge it should show the details of the submission
- the observed behavior
when a file is submitted to the challenge all submission details are non as shown below
:
dependencies = [
... |
Display the participant team name by which a participant participates in a challenge
## Current Behaviour
In the current setup, a participant doesn't know the participant team by which they have participated until they select the submissions under `My Submissions` Tab.
## Expected Behaviour
The participant tea... | apps/challenges/urls.py
<|code_start|>from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^challenge_host_team/(?P<challenge_host_team_pk>[0-9]+)/challenge$",
views.challenge_list,
name="get_challenge_list",
),
url(
r"^challenge_host_team/(?P<challen... | apps/challenges/urls.py
<|code_start|>from django.conf.urls import url
from . import views
urlpatterns = [
url(
r"^challenge_host_team/(?P<challenge_host_team_pk>[0-9]+)/challenge$",
views.challenge_list,
name="get_challenge_list",
),
url(
r"^challenge_host_team/(?P<challen... |
Send email to EvalAI admin when the EKS cluster creation is completed on AWS
| apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from .challenge... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from .challenge... |
Stop and delete the challenge workers on AWS automatically when the challenge is un-approved by admin
**Description**
The challenge worker on Fargate keeps on running even when the challenge is unapproved by the EvalAI Admin.
**Fix**
Ideally, when the challenge is unapproved by the admin then the workers on Fargat... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from .challenge... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from .challenge... |
Updates in seed script
### Description
Make the following changes in seeding script:
1. It doesn't create featured challenges. Please create 5 featured challenges in seed script
2. [BugFix] Challenge image is not being shown up for the challenges created with the seed script. May be the image is not uploaded.
| apps/base/management/commands/seed.py
<|code_start|>from django.core.management import BaseCommand, call_command
class Command(BaseCommand):
help = "Seeds the database with random but sensible values."
def add_arguments(self, parser):
parser.add_argument(
"-nc", nargs="?", default=15, ty... | apps/base/management/commands/seed.py
<|code_start|>from django.core.management import BaseCommand, call_command
class Command(BaseCommand):
help = "Seeds the database with random but sensible values."
def add_arguments(self, parser):
parser.add_argument(
"-nc", nargs="?", default=20, ty... |
Check if workers are running before triggering start_workers method after approving a challenge.
**Description:**
The workers may be launched through the manage tab before challenge approval, and in this case the code results in an exception being logged to sentry when executing start_workers.
This shouldn't happe... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... |
Add check for docker based challenges in start/stop/restart/delete worker function
- Add a check in the `start_woker` method under `challenges/aws_utils.py` file to make sure that we are not starting workers for the code upload challenges from UI.
| apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... |
Delete log group from CloudWatch when a challenge worker is deleted.
| apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... |
Handle the case where log group hasn't been created yet when displaying logs.
It takes about 1.5 minutes for the logs group to get created on Cloudwatch once the workers are started for the first time. And if the host tries to view the logs in this period, they'll get an error message.
**ToDo:**
- [x] Change the ... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... | apps/challenges/aws_utils.py
<|code_start|>import logging
import os
import random
import string
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTTPStatus
from rest_framew... |
Dedup environment variables for EvalAI django server endpoint
### Description
We are using multiple environment variables for EvalAI django server endpoint, `API_HOST_URL` `EVALAI_API_SERVER` `DJANGO_SERVER`. Ideally we should only have a common environment variable `DJANGO_SERVER` for the endpoint which should be u... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... |
Add swagger api documentation for get_all_entries_on_public_leaderboard API
### Description
Hosts can use EvalAI APIs to get details of the leaderboard entries. The get leaderboard entries API documentation is missing documentation on EvalAI [docs](http://eval.ai/api/docs/).
### Deliverables
Add documentation ... | apps/jobs/views.py
<|code_start|>import botocore
import datetime
import json
import logging
import os
import uuid
from rest_framework import permissions, status
from rest_framework.decorators import (
api_view,
authentication_classes,
permission_classes,
throttle_classes,
)
from django.conf import set... | apps/jobs/views.py
<|code_start|>import botocore
import datetime
import json
import logging
import os
import uuid
from rest_framework import permissions, status
from rest_framework.decorators import (
api_view,
authentication_classes,
permission_classes,
throttle_classes,
)
from django.conf import set... |
Fix cyclic import dependency in challenges/aws_utils.py
### Description
Currently, we can't import `Challenge` model or any method from `challenges/utils.py` in [challenges/aws_utils.py](https://github.com/Cloud-CV/EvalAI/blob/master/apps/challenges/aws_utils.py) because `aws_utils.py` is being imported in `challeng... | apps/challenges/models.py
<|code_start|>from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.core import serializers
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.utils import timezone
from django.contrib.postgres.fields import... | apps/challenges/models.py
<|code_start|>from __future__ import unicode_literals
from django.contrib.auth.models import User
from django.core import serializers
from django.db.models.signals import pre_save
from django.dispatch import receiver
from django.utils import timezone
from django.contrib.postgres.fields import... |
Add swagger api documentation for remove_participant_team_from_challenge API
### Description
Hosts can use EvalAI APIs to remove participant teams from an active challenge. The remove participant team from challenge API documentation is missing documentation on EvalAI [docs](http://eval.ai/api/docs/).
### Deliv... | apps/participants/views.py
<|code_start|>from django.contrib.auth.models import User
from rest_framework import permissions, status
from rest_framework.decorators import (
api_view,
authentication_classes,
permission_classes,
throttle_classes,
)
from rest_framework.response import Response
from rest_fr... | apps/participants/views.py
<|code_start|>from django.contrib.auth.models import User
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema
from rest_framework import permissions, status
from rest_framework.decorators import (
api_view,
authentication_classes,
permission_classes,
t... |
Add swagger api documentation for download_all_submissions API
### Description
Hosts can use EvalAI APIs to download all submission details. The download all submissions API documentation is missing documentation on EvalAI [docs](http://eval.ai/api/docs/).
### Deliverables
Add documentation for using `download... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... |
[Frontend V2] Fix the media assets endpoint
### Description
We recently moved to `https://evalai.s3.amazonaws.com/` endpoint for our media assets. Frontend v2 is still using `https://staging-evalai.s3.amazonaws.com/` endpoint. We should switch to new enpdoint in frontend v2.
| settings/staging.py
<|code_start|>from .prod import * # noqa: ignore=F405
ALLOWED_HOSTS = ["staging.eval.ai"]
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = (
"https://staging-evalai.s3.amazonaws.com",
"https://staging.eval.ai",
"https://beta-staging.eval.ai",
)
<|code_end|>
| settings/staging.py
<|code_start|>from .prod import * # noqa: ignore=F405
ALLOWED_HOSTS = ["staging.eval.ai"]
CORS_ORIGIN_ALLOW_ALL = False
CORS_ORIGIN_WHITELIST = (
"https://evalai.s3.amazonaws.com",
"https://staging-evalai.s3.amazonaws.com",
"https://staging.eval.ai",
"https://beta-staging.eval.ai... |
Phase is in random order in leaderboard
Phases are in random order in the leaderboard (undesirable), unlike the sorted behavior in the phases tab.
This is due to the backend API [`challenge_phase_split_list`](https://github.com/Cloud-CV/EvalAI/blob/master/apps/challenges/views.py#L824-L850) not ordering the filtered... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from django.conf import settings
from django.contrib.auth.hashers import make... |
Improve Validate Challenge Config
### Description
Currently, there are lots of issues with the validate challenge configuration utility present [here](https://github.com/Cloud-CV/EvalAI/blob/19130726790e4cb79b0d2e8603dd6817b16dba69/apps/challenges/challenge_config_utils.py#L223).
Here are some issues which this h... | apps/challenges/challenge_config_utils.py
<|code_start|>import logging
import requests
import zipfile
import yaml
from django.core.files.base import ContentFile
from os.path import basename, isfile, join
from challenges.models import ChallengePhase, ChallengePhaseSplit, DatasetSplit, Leaderboard
from rest_framework i... | apps/challenges/challenge_config_utils.py
<|code_start|>import logging
import requests
import zipfile
import yaml
from django.core.files.base import ContentFile
from os.path import basename, isfile, join
from challenges.models import ChallengePhase, ChallengePhaseSplit, DatasetSplit, Leaderboard
from rest_framework i... |
Fix reset password message for inactive users
Users who are inactive get "Resent Password Link Sent to Email" message but do not receive emails.
We should not send them emails but at the same time show appropriate message here.
:
"""
Make username as a read_only field.
"""
class Meta:
model = get... | apps/accounts/serializers.py
<|code_start|>from django.contrib.auth import get_user_model
from rest_auth.serializers import PasswordResetSerializer
from rest_framework.exceptions import ValidationError
from .models import JwtToken, Profile
from rest_framework import serializers
class UserDetailsSerializer(serializers... |
Duplicate Challenge Phase split
When creating a challenge phase split, we are able to create challenge phase split with same dataset split id, challenge phase id and leaderboard id, this shouldn't be the case as it creates a duplicate entry for no use.
To maintain a well-organized and clear competition environment,... | apps/challenges/challenge_config_utils.py
<|code_start|>import logging
import requests
import zipfile
import yaml
from django.core.files.base import ContentFile
from os.path import basename, isfile, join
from challenges.models import ChallengePhase, ChallengePhaseSplit, DatasetSplit, Leaderboard, Challenge
from rest_... | apps/challenges/challenge_config_utils.py
<|code_start|>import logging
import requests
import zipfile
import yaml
from django.core.files.base import ContentFile
from os.path import basename, isfile, join
from challenges.models import ChallengePhase, ChallengePhaseSplit, DatasetSplit, Leaderboard, Challenge
from rest_... |
Problem with get submission metrics API
There is an issue with `get_submission_metrics` API that it is open to all. I think it should be only restricted to admins now that we have a `is_user_a_staff` utility.
| apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import pytz
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from datetime import datetime
from django.conf import settings
f... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import pytz
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from datetime import datetime
from django.conf import settings
f... |
Leaderboard id replaced in challenge phase split
Currently when a challenge host tries to update his challenge using the config and he has more than one leaderboard then the other leaderboards are removed and only one remains. This might be due to the https://github.com/Cloud-CV/EvalAI/blob/master/apps/challenges/views... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import pytz
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from datetime import datetime
from django.conf import settings
f... | apps/challenges/views.py
<|code_start|>import csv
import json
import logging
import os
import pytz
import random
import requests
import shutil
import tempfile
import time
import uuid
import yaml
import zipfile
from os.path import basename, isfile, join
from datetime import datetime
from django.conf import settings
f... |
No auto scale on intializing/stopping: Auto scaling should not work when instance is initializing or stopping.
| apps/challenges/aws_utils.py
<|code_start|>import json
import logging
import os
import random
import string
import uuid
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTT... | apps/challenges/aws_utils.py
<|code_start|>import json
import logging
import os
import random
import string
import uuid
import yaml
from botocore.exceptions import ClientError
from django.conf import settings
from django.core import serializers
from django.core.files.temp import NamedTemporaryFile
from http import HTT... |
[BugFix] Allow staff to access leaderboard data
| apps/jobs/utils.py
<|code_start|>import datetime
import logging
import os
import requests
import tempfile
import urllib.request
from django.db.models import FloatField, Q, F, fields, ExpressionWrapper
from django.db.models.expressions import RawSQL
from django.utils import timezone
from rest_framework import status
fr... | apps/jobs/utils.py
<|code_start|>import datetime
import logging
import os
import requests
import tempfile
import urllib.request
from django.db.models import FloatField, Q, F, fields, ExpressionWrapper
from django.db.models.expressions import RawSQL
from django.utils import timezone
from rest_framework import status
fr... |
prefixes that are prefixed by other prefixes don't work
!set prefix ! "! "
! flip
^ no output
!flip
^ output
!set prefix ! !!
etc
| red.py
<|code_start|>from discord.ext import commands
import discord
from cogs.utils.settings import Settings
from random import choice as rndchoice
import threading
import datetime, re
import json, asyncio
import copy
import glob
import os
import time
import sys
import logging
import aiohttp
import importlib
#
# Red... | red.py
<|code_start|>from discord.ext import commands
import discord
from cogs.utils.settings import Settings
from random import choice as rndchoice
import threading
import datetime, re
import json, asyncio
import copy
import glob
import os
import time
import sys
import logging
import aiohttp
import importlib
#
# Red... |
Denial of Service through bots triggering each other
Self-explanatory. Solution is to disallow commands if `author.bot` is `True`.
| red.py
<|code_start|>from discord.ext import commands
import discord
from cogs.utils.settings import Settings
from cogs.utils.dataIO import dataIO
from cogs.utils.chat_formatting import inline
import asyncio
import os
import time
import sys
import logging
import logging.handlers
import shutil
import traceback
#
# Red... | red.py
<|code_start|>from discord.ext import commands
import discord
from cogs.utils.settings import Settings
from cogs.utils.dataIO import dataIO
from cogs.utils.chat_formatting import inline
import asyncio
import os
import time
import sys
import logging
import logging.handlers
import shutil
import traceback
#
# Red... |
Red won't show servers when they reach a limit
After the Discord chat messages limit, Red can no longer display servers, http://prnt.sc/cr14d3
Possibility to make it send 2 messages every 100 servers?
| cogs/owner.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils import checks
from __main__ import set_cog, send_cmd_help, settings
from .utils.dataIO import fileIO
import importlib
import traceback
import logging
import asyncio
import threading
import datetime
import glob
import os
import ... | cogs/owner.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils import checks
from __main__ import set_cog, send_cmd_help, settings
from .utils.dataIO import fileIO
from .utils.chat_formatting import pagify
import importlib
import traceback
import logging
import asyncio
import threading
imp... |
Local playlists don't play in order
I have a local playlist consisting of an audio drama. Each file is named with a leading zero-prefixed number: `01, 02, ..., 10, 11, etc`. However, playing a local playlist did not start with `01` as I would have expected.
| cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import fileIO
from cogs.utils import checks
from __main__ import send_cmd_help, settings
import re
import logging
import collections
import copy
import asyncio... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import fileIO
from cogs.utils import checks
from __main__ import send_cmd_help, settings
import re
import logging
import collections
import copy
import asyncio... |
[Audio] Server owner can't stop music using [p]stop
This appears to be a bug resulting from the fact that server owner isn't even checked for in `def can_instaskip` (line 1740 of audio.py). Propose adding a check for server owner in there
| cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from __main__ import send_cmd_help, settings
from json import JSONDecodeError
import re
import logging
import colle... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from __main__ import send_cmd_help, settings
from json import JSONDecodeError
import re
import logging
import colle... |
[p]version command won't embed if repo has a non-HTTPS remote address
I narrowed down a problem I was getting on the [p]version command for both regular and selfbots, where it would say "I need the `Embed links` permission to send this."
As it turns out, Discord doesn't allow non-HTTP protocols in the `url` field of e... | cogs/owner.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils import checks
from __main__ import set_cog
from .utils.dataIO import dataIO
from .utils.chat_formatting import pagify, box
import importlib
import traceback
import logging
import asyncio
import threading
import datetime
import ... | cogs/owner.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils import checks
from __main__ import set_cog
from .utils.dataIO import dataIO
from .utils.chat_formatting import pagify, box
import importlib
import traceback
import logging
import asyncio
import threading
import datetime
import ... |
[Downloader] Sporadic issue with [p]cog update
```
Traceback (most recent call last):
File "lib\discord\ext\commands\core.py", line 50, in wrapped
ret = yield from coro(args, **kwargs)
File "C:\Users\bot\Downloads\X\cogs\downloader.py", line 243, in update
name, updates, oldhash = await f
File "C:\U... | cogs/downloader.py
<|code_start|>from discord.ext import commands
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, box
from __main__ import send_cmd_help, set_cog
import os
from subprocess import run, PIPE
import shutil
from asyncio import as_completed
fr... | cogs/downloader.py
<|code_start|>from discord.ext import commands
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, box
from __main__ import send_cmd_help, set_cog
import os
from subprocess import run as sp_run, PIPE
import shutil
from asyncio import as_co... |
[Config V3] Config objects get() function is not returning the correct default value
It's currently returning `None` instead of the given default. Not sure if this happens across all levels but is definitely happening on at least guild.
| core/config.py
<|code_start|>from pathlib import Path
from core.drivers.red_json import JSON as JSONDriver
from core.drivers.red_mongo import Mongo
import logging
from typing import Callable
log = logging.getLogger("red.config")
class BaseConfig:
def __init__(self, cog_name, unique_identifier, driver_spawn, for... | core/config.py
<|code_start|>from pathlib import Path
from core.drivers.red_json import JSON as JSONDriver
from core.drivers.red_mongo import Mongo
import logging
from typing import Callable
log = logging.getLogger("red.config")
class BaseConfig:
def __init__(self, cog_name, unique_identifier, driver_spawn, for... |
[Config V3] User all returning wrong level
All is currently returning USER_ID -> data instead of just data
| core/config.py
<|code_start|>import logging
from typing import Callable, Union, Tuple
import discord
from copy import deepcopy
from pathlib import Path
from .drivers.red_json import JSON as JSONDriver
log = logging.getLogger("red.config")
class Value:
def __init__(self, identifiers: Tuple[str], default_value... | core/config.py
<|code_start|>import logging
from typing import Callable, Union, Tuple
import discord
from copy import deepcopy
from pathlib import Path
from .drivers.red_json import JSON as JSONDriver
log = logging.getLogger("red.config")
class Value:
def __init__(self, identifiers: Tuple[str], default_value... |
[Core V3] A lot of checks are broken
Thought I'd shed some light on some bugs regarding checks. I'm anticipating much of these to be rewritten anyway (esp. the core checks) however fixing these now will help, since they are a pain when testing rewritten cogs.
- Global checks are all failing because of async getters
... | cogs/bank/bank.py
<|code_start|>from discord.ext import commands
from core import checks, bank
from core.bot import Red # Only used for type hints
def check_global_setting_guildowner():
async def pred(ctx: commands.Context):
if await bank.is_global():
return checks.is_owner()
else:
... | cogs/bank/bank.py
<|code_start|>from discord.ext import commands
from core import checks, bank
from core.bot import Red # Only used for type hints
def check_global_setting_guildowner():
"""
Command decorator. If the bank is not global, it checks if the author is
either the guildowner or has the adminis... |
Music player error
Hi, I'm getting this error sometimes, and when it happens it'll skip the song it is currently playing.
[tls @ 00000228e2ef6d40] Error in the pull function.
[aac @ 00000228e2f8a740] Input buffer exhausted before END element found
Error while decoding stream #0:0: Invalid data found when processing in... | setup.py
<|code_start|>from distutils.core import setup
from pathlib import Path
from subprocess import run, PIPE
from setuptools import find_packages
def get_package_list():
core = find_packages(include=['redbot', 'redbot.*'])
return core
def get_requirements():
with open('requirements.txt') as f:
... | setup.py
<|code_start|>from distutils.core import setup
from pathlib import Path
from subprocess import run, PIPE
from setuptools import find_packages
def get_package_list():
core = find_packages(include=['redbot', 'redbot.*'])
return core
def get_requirements():
with open('requirements.txt') as f:
... |
[V2] Unable to repeat queue on latest commit
Hey, a new error that occurs on the audio cog has appeared recently, blocking the repeat function of the queue. Let me explain what the problem is:
1. I make my queue, using `[p]play` or `[p]queue`
2. I toggle the repeat function
As of now, the queue show normally, but... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, escape
from urllib.parse import urlparse
from __main__ import send_c... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, escape
from urllib.parse import urlparse
from __main__ import send_c... |
Config docs issue
http://i.imgur.com/FdowiQS.png
In that screenshot, the docstring for `register_guild` was copied and pasted, without changes, to `register_member`, `register_role`, and `register_user`. That should be changed (by making the appropriate edits to the docstrings for those three functions in `core/conf... | redbot/core/config.py
<|code_start|>import logging
from copy import deepcopy
from typing import Callable, Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers.red_json import JSON as JSONDriver
log = logging.getLogger("red.config")
class Value:
"""
A singular "v... | redbot/core/config.py
<|code_start|>import logging
from copy import deepcopy
from typing import Callable, Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers.red_json import JSON as JSONDriver
log = logging.getLogger("red.config")
class Value:
"""
A singular "v... |
[V3 Modlog] Duplicate cases created on bans
Duplicate cases are being created when using the `ban` command. This is likely due to the `on_member_ban` event in `Mod`
| redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from collections import deque, defaultdict
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import b... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from collections import deque, defaultdict
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import b... |
[V3 CustomCom] Add internationalization to strings and generate messages.pot
| redbot/cogs/customcom/customcom.py
<|code_start|>import os
import re
import random
from datetime import datetime
import discord
from discord.ext import commands
from redbot.core import Config, checks
from redbot.core.utils.chat_formatting import box
class CCError(Exception):
pass
class NotFound(CCError):
... | redbot/cogs/customcom/customcom.py
<|code_start|>import os
import re
import random
from datetime import datetime
import discord
from discord.ext import commands
from redbot.core import Config, checks
from redbot.core.utils.chat_formatting import box, pagify
from redbot.core.i18n import CogI18n
_ = CogI18n("CustomCom... |
[V3 Modlog] Duplicate cases created on bans
Duplicate cases are being created when using the `ban` command. This is likely due to the `on_member_ban` event in `Mod`
| redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from collections import deque, defaultdict
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import b... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from datetime import datetime
from collections import deque, defaultdict
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.... |
[Streams] Twitch: User can't remove stream alert on stream username change
| cogs/streams.py
<|code_start|>from discord.ext import commands
from .utils.dataIO import dataIO
from .utils.chat_formatting import escape_mass_mentions
from .utils import checks
from collections import defaultdict
from string import ascii_letters
from random import choice
import discord
import os
import re
import aioht... | cogs/streams.py
<|code_start|>from discord.ext import commands
from .utils.dataIO import dataIO
from .utils.chat_formatting import escape_mass_mentions
from .utils import checks
from collections import defaultdict
from string import ascii_letters
from random import choice
import discord
import os
import re
import aioht... |
[V3 Beta 3 Streams] 'Task' Object has no attribute 'append' when
### Type:
Bug
### Brief description of the problem
`!streamalert twitch channel <channel_name>` gives error `'Task' object has no attribute 'append'`
### Expected behavior
Add a stream to the list of channels to be alerted for
### Actua... | redbot/cogs/streams/main.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import Config, checks, RedContext
from redbot.core.utils.chat_formatting import pagify, box
from redbot.core.bot import Red
from .streams import TwitchStream, HitboxStream, MixerStream, PicartoStream, TwitchCommun... | redbot/cogs/streams/main.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import Config, checks, RedContext
from redbot.core.utils.chat_formatting import pagify, box
from redbot.core.bot import Red
from .streams import TwitchStream, HitboxStream, MixerStream, PicartoStream, TwitchCommun... |
[V3 Beta 2] Adding repo with non-default cog install location
```
[11/11/2017 19:58] ERROR events on_command_error 159: Exception in command 'repo add'
Traceback (most recent call last):
File "c:\program files\python36\lib\site-packages\discord\ext\commands\core.py", line 62, in wrapped
ret = yield from coro(... | redbot/cogs/downloader/installable.py
<|code_start|>import json
import distutils.dir_util
import shutil
from enum import Enum
from pathlib import Path
from typing import Union, MutableMapping, Any
from .log import log
from .json_mixins import RepoJSONMixin
class InstallableType(Enum):
UNKNOWN = 0
COG = 1
... | redbot/cogs/downloader/installable.py
<|code_start|>import json
import distutils.dir_util
import shutil
from enum import Enum
from pathlib import Path
from typing import Union, MutableMapping, Any
from redbot.core import data_manager
from .log import log
from .json_mixins import RepoJSONMixin
class InstallableType(E... |
[V3] [p]mock doesn't work with aliases
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
Attempting to run an alias as another user with `[p]mock... | redbot/core/dev_commands.py
<|code_start|>import asyncio
import inspect
import io
import textwrap
import traceback
from contextlib import redirect_stdout
import discord
from discord.ext import commands
from . import checks
from .i18n import CogI18n
from .utils.chat_formatting import box, pagify
"""
Notice:
95% of the... | redbot/core/dev_commands.py
<|code_start|>import asyncio
import inspect
import io
import textwrap
import traceback
from contextlib import redirect_stdout
from copy import copy
import discord
from discord.ext import commands
from . import checks
from .i18n import CogI18n
from .utils.chat_formatting import box, pagify
"... |
[V3] Error in command repl
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
So I first tried to use the core repl function on V3 for the first time. I set a very basic value and got an error
### Steps to reproduce
1. `=repl`
2. `level = 1`
![screen shot 2017-12-10 at 19 42 2... | redbot/core/dev_commands.py
<|code_start|>import asyncio
import inspect
import io
import textwrap
import traceback
from contextlib import redirect_stdout
from copy import copy
import discord
from discord.ext import commands
from . import checks
from .i18n import CogI18n
from .utils.chat_formatting import box, pagify
"... | redbot/core/dev_commands.py
<|code_start|>import asyncio
import inspect
import io
import textwrap
import traceback
from contextlib import redirect_stdout
from copy import copy
import discord
from discord.ext import commands
from . import checks
from .i18n import CogI18n
from .utils.chat_formatting import box, pagify
"... |
TypeError: Only messages, members or roles may be passed
https://sentry.io/will-tekulve/bot-development/issues/419244737/
```
TypeError: Only messages, members or roles may be passed
File "redbot/core/utils/mod.py", line 132, in is_mod_or_superior
raise TypeError('Only messages, members or roles may be passed')
... | redbot/core/utils/mod.py
<|code_start|>import asyncio
from datetime import timedelta
from typing import List, Iterable, Union
import discord
from redbot.core import Config
from redbot.core.bot import Red
async def mass_purge(messages: List[discord.Message],
channel: discord.TextChannel):
""... | redbot/core/utils/mod.py
<|code_start|>import asyncio
from datetime import timedelta
from typing import List, Iterable, Union
import discord
from redbot.core import Config
from redbot.core.bot import Red
async def mass_purge(messages: List[discord.Message],
channel: discord.TextChannel):
""... |
TypeError: object Value can't be used in 'await' expression
https://sentry.io/will-tekulve/bot-development/issues/419249984/
```
TypeError: object Value can't be used in 'await' expression
File "discord/client.py", line 223, in _run_event
yield from coro(*args, **kwargs)
File "filter/filter.py", line 309, in o... | redbot/cogs/filter/filter.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import pagify
from redbot.core.utils.mod import is_mod_or_sup... | redbot/cogs/filter/filter.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import pagify
from redbot.core.utils.mod import is_mod_or_sup... |
AttributeError: 'MissingRequiredArgument' object has no attribute 'original'
https://sentry.io/will-tekulve/bot-development/issues/418646879/
```
AttributeError: 'MissingRequiredArgument' object has no attribute 'original'
File "redbot/core/events.py", line 187, in on_command_error
exc_info=error.original)
Exce... | redbot/core/events.py
<|code_start|>import sys
import codecs
import datetime
import logging
import pkg_resources
import traceback
from pkg_resources import DistributionNotFound
import discord
from discord.ext import commands
from . import __version__
from .data_manager import storage_type
from .utils.chat_formatting... | redbot/core/events.py
<|code_start|>import sys
import codecs
import datetime
import logging
import pkg_resources
import traceback
from pkg_resources import DistributionNotFound
import discord
from discord.ext import commands
from . import __version__
from .data_manager import storage_type
from .utils.chat_formatting... |
[V3] Offers cli flags after invalid input
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
Launcher still asks for cli flags after fail
### Expected behavior
When selecting an instance index, if the input is invalid, don't ask for cli flags
### Actual behavior
Using the redbot-l... | redbot/launcher.py
<|code_start|>import getpass
import os
import platform
import subprocess
import sys
import argparse
import pkg_resources
from redbot.setup import basic_setup, load_existing_config
if sys.platform == "linux":
import distro
PYTHON_OK = sys.version_info >= (3, 5)
INTERACTIVE_MODE = not len(sys.ar... | redbot/launcher.py
<|code_start|>import getpass
import os
import platform
import subprocess
import sys
import argparse
import pkg_resources
from redbot.setup import basic_setup, load_existing_config
if sys.platform == "linux":
import distro
PYTHON_OK = sys.version_info >= (3, 5)
INTERACTIVE_MODE = not len(sys.ar... |
[V3 Cleanup] Handle getting coroutine prefixes for [p]cleanup bot
### Type
- Bug
### Description
Coroutine prefixes aren't implemented for `cleanup bot`. This is kind of important since Red's default prefix is a coroutine.
This is pretty easy; we can just use `await bot.get_prefix(ctx.message)`, since this actually ... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import asyncio
import re
import discord
from discord.ext import commands
from redbot.core import checks
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
from... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import asyncio
import re
import discord
from discord.ext import commands
from redbot.core import checks
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
from... |
[V3 Context] Handle DMs properly during send_interactive
(*forwarded from @palmtree5*)
### Type:
- Bug
### Brief description of the problem
When a user in DM types `more` during a case of `ctx.send_interactive` (for example, a long response to `[p]debug`), an error occurs.
### Expected behavior
When a use... | redbot/core/context.py
<|code_start|>"""
The purpose of this module is to allow for Red to further customise the command
invocation context provided by discord.py.
"""
import asyncio
from typing import Iterable, List
import discord
from discord.ext import commands
from redbot.core.utils.chat_formatting import box
__... | redbot/core/context.py
<|code_start|>"""
The purpose of this module is to allow for Red to further customise the command
invocation context provided by discord.py.
"""
import asyncio
from typing import Iterable, List
import discord
from discord.ext import commands
from redbot.core.utils.chat_formatting import box
__... |
[V3 Streams] Preceding comma in stream alert messages
### Type:
- Bug
### Brief description of the problem
When a stream alert is sent, the bot's message contains an unnecessary preceding comma:

| redbot/cogs/streams/streams.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import Config, checks, RedContext
from redbot.core.utils.chat_formatting import pagify, box
from redbot.core.bot import Red
from .streamtypes import TwitchStream, HitboxStream, MixerStream, PicartoStream, Twitc... | redbot/cogs/streams/streams.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import Config, checks, RedContext
from redbot.core.utils.chat_formatting import pagify, box
from redbot.core.bot import Red
from .streamtypes import TwitchStream, HitboxStream, MixerStream, PicartoStream, Twitc... |
[V3] redbot-setup misbehaves with service accounts on linux
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
It creates (or tries to anyway) a h... | redbot/core/data_manager.py
<|code_start|>import sys
from pathlib import Path
from typing import List
import hashlib
import shutil
import logging
import appdirs
from .json_io import JsonIO
from .utils import TYPE_CHECKING
if TYPE_CHECKING:
from . import Config
__all__ = ['load_basic_configuration', 'cog_data_pa... | redbot/core/data_manager.py
<|code_start|>import sys
import os
from pathlib import Path
from typing import List
import hashlib
import shutil
import logging
import appdirs
from .json_io import JsonIO
from .utils import TYPE_CHECKING
if TYPE_CHECKING:
from . import Config
__all__ = ['load_basic_configuration', 'c... |
[V3 Help Formatter] Help command's error handler has incorrect params
### Type
- Bug
### Description
The help formatter's error handler has incorrect parameters; it's not a method but has `self` as its first arg, and `ctx` and `error` args are around the wrong way. It should look like this:
```py
@help.error
async de... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... |
[V3 Streams/Core] Use of aiohttp.ClientSession assignment
### Type:
- Bug
### Brief description of the problem
In various places throughout the bot (namely in streams and core_commands), `aiohttp.ClientSession()` is used like this:
```py
session = aiohttp.ClientSession()
async with session.request(url) as r:
... | redbot/cogs/streams/streamtypes.py
<|code_start|>from .errors import StreamNotFound, APIError, InvalidCredentials, OfflineStream, CommunityNotFound, OfflineCommunity
from random import choice
from string import ascii_letters
import discord
import aiohttp
import json
TWITCH_BASE_URL = "https://api.twitch.tv"
TWITCH_ID_... | redbot/cogs/streams/streamtypes.py
<|code_start|>from .errors import StreamNotFound, APIError, InvalidCredentials, OfflineStream, CommunityNotFound, OfflineCommunity
from random import choice
from string import ascii_letters
import discord
import aiohttp
import json
TWITCH_BASE_URL = "https://api.twitch.tv"
TWITCH_ID_... |
[V3] UnicodeEncodeError on Windows startup
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
Receiving similar UnicodeEncodeError as Issue #1048.... | redbot/core/events.py
<|code_start|>import sys
import codecs
import datetime
import logging
import pkg_resources
import traceback
from pkg_resources import DistributionNotFound
import discord
from discord.ext import commands
from . import __version__
from .data_manager import storage_type
from .utils.chat_formatting... | redbot/core/events.py
<|code_start|>import sys
import codecs
import datetime
import logging
import pkg_resources
import traceback
from pkg_resources import DistributionNotFound
import discord
from discord.ext import commands
from . import __version__
from .data_manager import storage_type
from .utils.chat_formatting... |
[V2] paydaytime transfers to newer servers
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
When running [p]economyset paydaytime in a server th... | cogs/economy.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils.dataIO import dataIO
from collections import namedtuple, defaultdict, deque
from datetime import datetime
from copy import deepcopy
from .utils import checks
from cogs.utils.chat_formatting import pagify, box
from enum import ... | cogs/economy.py
<|code_start|>import discord
from discord.ext import commands
from cogs.utils.dataIO import dataIO
from collections import namedtuple, defaultdict, deque
from datetime import datetime
from copy import deepcopy
from .utils import checks
from cogs.utils.chat_formatting import pagify, box
from enum import ... |
[V3] Instance deletion requires making a backup
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
Instance deletion doesn't work if you don't wan... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager import basic_config_default
from... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager import basic_config_default
from... |
[V3 Config] config items defaulted with a list all share the same list until reloaded from file
It appears that name changes are logged ans saved to every user in the same guild. Error somewhere in ``on_member_update`` logic.
| redbot/core/config.py
<|code_start|>import logging
import collections
from copy import deepcopy
from typing import Callable, Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers import get_driver
log = logging.getLogger("red.config")
class _ValueCtxManager:
"""Conte... | redbot/core/config.py
<|code_start|>import logging
import collections
from copy import deepcopy
from typing import Callable, Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers import get_driver
log = logging.getLogger("red.config")
class _ValueCtxManager:
"""Conte... |
Error on [p]cog update
### Type:
- [ ] Suggestion
- [ X] Bug
### Brief description of the problem
`[p]cog update` fails with ValueError
### Expected behavior
Cogs to update normally
### Actual behavior
```Exception in command 'cog update'
Traceback (most recent call last):
File "c:\program files\pyt... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... |
[V3 General] Error in command 'userinfo'.
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
When the command [p]userinfo is done, there is an er... | redbot/cogs/general/general.py
<|code_start|>import datetime
import time
from enum import Enum
from random import randint, choice
from urllib.parse import quote_plus
import aiohttp
import discord
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.utils.chat_formatting import escape... | redbot/cogs/general/general.py
<|code_start|>import datetime
import time
from enum import Enum
from random import randint, choice
from urllib.parse import quote_plus
import aiohttp
import discord
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.utils.chat_formatting import escape... |
[V3 Utils/Mod] Mod helpers allow users to be passed, raising AttributeError
### Type:
- Bug
### Brief description of the problem
Following #1185, `is_admin_or_superior` and `is_mod_or_superior` allow `discord.User` to be passed in, but when this occurs, `AttributeError` is raised.
**UPDATE:** these functions ... | redbot/cogs/filter/filter.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import pagify
from redbot.core.utils.mod import is_mod_or_sup... | redbot/cogs/filter/filter.py
<|code_start|>import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.chat_formatting import pagify
from redbot.core.utils.mod import is_mod_or_sup... |
[V3] Unable to find specified path
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
On load of cogs fresh from install everything seemed to wor... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... |
'ClientUser' object has no attribute 'status'
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
Whilst trying to set what RED is listening to, she chooses to rather error out than be of use.
### Expected behavior
Show the documentation for [p]set listening
### Actual behavior
```
A... | redbot/core/core_commands.py
<|code_start|>import asyncio
import importlib
import itertools
import logging
import sys
import traceback
from collections import namedtuple
from random import SystemRandom
from string import ascii_letters, digits
import aiohttp
import datetime
import discord
from discord.ext import comman... | redbot/core/core_commands.py
<|code_start|>import asyncio
import importlib
import itertools
import logging
import sys
import traceback
from collections import namedtuple
from random import SystemRandom
from string import ascii_letters, digits
import aiohttp
import datetime
import discord
from discord.ext import comman... |
[V3] Cleanup returns trace
Using Red 3.0.0b8 cleanup returns trace:
```
Exception in command 'cleanup messages'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/discord/ext/commands/core.py", line 62, in wrapped
ret = yield from coro(*args, **kwargs)
File "/usr/lib/python3.6/sit... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import asyncio
import re
import discord
from discord.ext import commands
from redbot.core import checks
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
from... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import asyncio
import re
import discord
from discord.ext import commands
from redbot.core import checks
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
from... |
Built in commands "addrole" and "removerole" bug
###Version of Red is Version 3
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Bug
### Brief description of the problem
The problem is with the [p]add... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... |
[V3/Config] Set data folder for config
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [x] Suggestion
- [ ] Bug
### Brief description of the problem
Currently, it's difficult to set a specific data folder... | redbot/core/config.py
<|code_start|>import contextlib
import logging
import collections
from weakref import ref
from copy import deepcopy
from typing import Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers import get_driver
from .utils import TYPE_CHECKING
if TYPE_CH... | redbot/core/config.py
<|code_start|>import contextlib
import logging
import collections
from weakref import ref
from copy import deepcopy
from typing import Union, Tuple
import discord
from .data_manager import cog_data_path, core_data_path
from .drivers import get_driver
from .utils import TYPE_CHECKING
if TYPE_CH... |
[V3] Downloader errors out on existing repo name conventions
### Type:
- [X] Suggestion
- [ ] Bug
### Brief description of the problem
Downloader will error out when given a repo name that contains dashes, like "aikaterna-cogs", when adding a repo.
### Expected behavior
v3 Downloader should behave like v2 ... | redbot/cogs/downloader/converters.py
<|code_start|>import discord
from discord.ext import commands
from .repo_manager import RepoManager
from .installable import Installable
class RepoName(commands.Converter):
async def convert(self, ctx: commands.Context, arg: str) -> str:
return RepoManager.validate_and... | redbot/cogs/downloader/converters.py
<|code_start|>import discord
from discord.ext import commands
from .repo_manager import RepoManager
from .installable import Installable
class InstalledCog(commands.Converter):
async def convert(self, ctx: commands.Context, arg: str) -> Installable:
downloader = ctx.bo... |
[V3/Config] Clearing a registered data group when no data has been set results in a KeyError.
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
W... | redbot/core/drivers/red_json.py
<|code_start|>from pathlib import Path
from typing import Tuple
from ..json_io import JsonIO
from .red_base import BaseDriver
__all__ = ["JSON"]
class JSON(BaseDriver):
"""
Subclass of :py:class:`.red_base.BaseDriver`.
.. py:attribute:: file_name
The name of th... | redbot/core/drivers/red_json.py
<|code_start|>from pathlib import Path
from typing import Tuple
from ..json_io import JsonIO
from .red_base import BaseDriver
__all__ = ["JSON"]
class JSON(BaseDriver):
"""
Subclass of :py:class:`.red_base.BaseDriver`.
.. py:attribute:: file_name
The name of th... |
[V3 Admin] [p]announce still relies on default channel
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
if i using announce command it has happe... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... |
[V3 Admin] [p]announce should consume all args for the message
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
if i using like this : [p]announce test time
### Expected behavior
i can see the message I wrote.(test time)
### Actual behavior
i can not see the message after the space,... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... | redbot/cogs/admin/admin.py
<|code_start|>from typing import Tuple
import discord
from discord.ext import commands
from redbot.core import Config, checks
import logging
from redbot.core.utils.chat_formatting import box
from .announcer import Announcer
from .converters import MemberDefaultAuthor, SelfRole
log = logg... |
[Mod] First word missing from reason when issuing ban
When using the ban command the bot removes the first word for the reason. Probably something to do with the ``days`` argument when using the ban command.
[Mod] First word missing from reason when issuing ban
When using the ban command the bot removes the first word ... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from datetime import datetime, timedelta
from collections import deque, defaultdict, namedtuple
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import Co... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from datetime import datetime, timedelta
from collections import deque, defaultdict, namedtuple
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import Co... |
[V3 Bank] Checks issue
https://sentry.io/will-tekulve/bot-development/issues/479390712/
```
AttributeError: 'NoneType' object has no attribute 'owner'
(5 additional frame(s) were not displayed)
...
File "redbot/core/context.py", line 36, in send_help
embeds = await self.bot.formatter.format_help_for(self, comman... | redbot/cogs/bank/bank.py
<|code_start|>from redbot.core import checks, bank
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.bot import Red # Only used for type hints
_ = CogI18n('Bank', __file__)
def check_global_setting_guildowner():
"""
Command decorator. If the ban... | redbot/cogs/bank/bank.py
<|code_start|>import discord
from redbot.core import checks, bank
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.bot import Red # Only used for type hints
_ = CogI18n('Bank', __file__)
def check_global_setting_guildowner():
"""
Command decor... |
AttributeError: 'list' object has no attribute 'keys'
https://sentry.io/will-tekulve/bot-development/issues/479198062/
```
AttributeError: 'list' object has no attribute 'keys'
File "redbot\cogs\warnings\warnings.py", line 211, in actionlist
for r in registered_actions.keys():
Exception in command 'actionlist'
... | redbot/cogs/warnings/helpers.py
<|code_start|>from copy import copy
from discord.ext import commands
import asyncio
import inspect
import discord
from redbot.core import RedContext, Config, checks
from redbot.core.i18n import CogI18n
_ = CogI18n("Warnings", __file__)
async def warning_points_add_check(config: Confi... | redbot/cogs/warnings/helpers.py
<|code_start|>from copy import copy
from discord.ext import commands
import asyncio
import inspect
import discord
from redbot.core import RedContext, Config, checks
from redbot.core.i18n import CogI18n
_ = CogI18n("Warnings", __file__)
async def warning_points_add_check(config: Confi... |
[V3 Launcher] Unable to [6]Remove Instance on Windows
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
Unable to remove a v3 instance using red-launcher
### Expected behavior
Bot would be removed successfully
### Actual behavior
https://cdn.discordapp.com/attachments/38739881631... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... | redbot/cogs/downloader/repo_manager.py
<|code_start|>import asyncio
import functools
import os
import pkgutil
import shutil
from concurrent.futures import ThreadPoolExecutor
from pathlib import Path
from subprocess import run as sp_run, PIPE
from sys import executable
from typing import Tuple, MutableMapping, Union
fr... |
[V3 Data management] We need a way to convert data from JSON to mongoDB, and revert
### Type:
- [x] Suggestion
- [ ] Bug
### Brief description of the problem
Right now, we can't switch from JSON to mongoDB (or in the other way), if we do, we lose all data. Creating a data convertor wouldn't be really hard but... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager import basic_config_default
from... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import asyncio
import json
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager impor... |
[V3/Downloader] Downloading a repository does not display creator's installation message.
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
Downl... | redbot/cogs/downloader/downloader.py
<|code_start|>import os
import shutil
from pathlib import Path
from sys import path as syspath
from typing import Tuple, Union
import discord
from redbot.core import Config
from redbot.core import checks
from redbot.core.data_manager import cog_data_path
from redbot.core.i18n impor... | redbot/cogs/downloader/downloader.py
<|code_start|>import os
import shutil
from pathlib import Path
from sys import path as syspath
from typing import Tuple, Union
import discord
from redbot.core import Config
from redbot.core import checks
from redbot.core.data_manager import cog_data_path
from redbot.core.i18n impor... |
[V3 Core] Setup should warn if replacing existing instance.
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [x] Suggestion
- [ ] Bug
### Brief description of the problem
Running redbot-setup with an existi... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import asyncio
import json
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager impor... | redbot/setup.py
<|code_start|>#!/usr/bin/env python
import argparse
import asyncio
import json
import os
import shutil
import sys
import tarfile
from copy import deepcopy
from datetime import datetime as dt
from pathlib import Path
import appdirs
from redbot.core.cli import confirm
from redbot.core.data_manager impor... |
[V3] Audio Resume/Pause Bug
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
When you use the command `resume` it actually pauses the video and ... | redbot/cogs/audio/audio.py
<|code_start|>import asyncio
import datetime
import discord
import heapq
import lavalink
import math
from discord.ext import commands
from redbot.core import Config, checks
from .manager import shutdown_lavalink_server
__version__ = "0.0.3a"
__author__ = ["aikaterna", "billy/bollo/ati"]
c... | redbot/cogs/audio/audio.py
<|code_start|>import asyncio
import datetime
import discord
import heapq
import lavalink
import math
from discord.ext import commands
from redbot.core import Config, checks, bank
from .manager import shutdown_lavalink_server
__version__ = "0.0.4"
__author__ = ["aikaterna", "billy/bollo/ati"... |
[V3 Core] Include proper way to show admin/mod role in current guild
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [X] Suggestion
- [ ] Bug
### Brief description of the problem
No way to see current admi... | redbot/cogs/bank/bank.py
<|code_start|>import discord
from redbot.core import checks, bank
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.bot import Red # Only used for type hints
_ = CogI18n('Bank', __file__)
def check_global_setting_guildowner():
"""
Command decor... | redbot/cogs/bank/bank.py
<|code_start|>import discord
from redbot.core.utils.chat_formatting import box
from redbot.core import checks, bank
from redbot.core.i18n import CogI18n
from discord.ext import commands
from redbot.core.bot import Red # Only used for type hints
_ = CogI18n('Bank', __file__)
def check_glob... |
[V2] Audio.py - Cache manager appears to remove youtubedl partial downloads.
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
Looks like we might have a possible race condition between youtube-dl and the cache manager in audio.py
Youtube-dl downloads to a .part then renames, cache mana... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, escape
from urllib.parse import urlparse
from __main__ import send_c... | cogs/audio.py
<|code_start|>import discord
from discord.ext import commands
import threading
import os
from random import shuffle, choice
from cogs.utils.dataIO import dataIO
from cogs.utils import checks
from cogs.utils.chat_formatting import pagify, escape
from urllib.parse import urlparse
from __main__ import send_c... |
[V3 Image] [p]imgur search errors out
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
`[p]imgur search` produces an error
### Expected behavior
It should give links to images
### Actual behavior
`Error in command 'imgur search'. Check your console or logs for details.`
### Steps t... | redbot/cogs/image/image.py
<|code_start|>from random import shuffle
import aiohttp
from discord.ext import commands
from redbot.core.i18n import CogI18n
from redbot.core import checks, Config
_ = CogI18n("Image", __file__)
GIPHY_API_KEY = "dc6zaTOxFJmzC"
class Image:
"""Image related commands."""
default_... | redbot/cogs/image/image.py
<|code_start|>from random import shuffle
import aiohttp
from discord.ext import commands
from redbot.core.i18n import CogI18n
from redbot.core import checks, Config
_ = CogI18n("Image", __file__)
GIPHY_API_KEY = "dc6zaTOxFJmzC"
class Image:
"""Image related commands."""
default_... |
[V3 ModLog] create_case until field raises exception
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
Attempting to create a case with an unti... | redbot/core/modlog.py
<|code_start|>import os
from datetime import datetime
from typing import List, Union
import discord
from redbot.core import Config
from redbot.core.bot import Red
__all__ = [
"Case", "CaseType", "get_next_case_number", "get_case", "get_all_cases",
"create_case", "get_casetype", "get_all... | redbot/core/modlog.py
<|code_start|>import os
from datetime import datetime
from typing import List, Union
import discord
from redbot.core import Config
from redbot.core.bot import Red
__all__ = [
"Case", "CaseType", "get_next_case_number", "get_case", "get_all_cases",
"create_case", "get_casetype", "get_all... |
[V3 Core] Set nickname not changing
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
On 3.0.0b11, when using `[p]set nickname Test`, the bot's... | redbot/core/core_commands.py
<|code_start|>import asyncio
import datetime
import importlib
import itertools
import logging
import os
import sys
import tarfile
import traceback
from collections import namedtuple
from pathlib import Path
from random import SystemRandom
from string import ascii_letters, digits
from distut... | redbot/core/core_commands.py
<|code_start|>import asyncio
import datetime
import importlib
import itertools
import logging
import os
import sys
import tarfile
import traceback
from collections import namedtuple
from pathlib import Path
from random import SystemRandom
from string import ascii_letters, digits
from distut... |
[V3] Cog path operations create duplicate entries
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
!addpath, !removepath, and !reorderpath do no... | redbot/core/cog_manager.py
<|code_start|>import contextlib
import pkgutil
from importlib import import_module, invalidate_caches
from importlib.machinery import ModuleSpec
from pathlib import Path
from typing import Tuple, Union, List, overload
import redbot.cogs
import discord
from . import checks
from .config impor... | redbot/core/cog_manager.py
<|code_start|>import contextlib
import pkgutil
from importlib import import_module, invalidate_caches
from importlib.machinery import ModuleSpec
from pathlib import Path
from typing import Tuple, Union, List
import redbot.cogs
import discord
from . import checks
from .config import Config
f... |
[V3 Cleanup] Cleanup messages not deleting if parameter bigger then channel size
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
On 3.0.0b11, when `[p]cleanup messages` is used and the number parameter is bigger then the messages in the channel, Red will not delete all messages. Si... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import re
import discord
from discord.ext import commands
from redbot.core import checks, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
_ = Co... | redbot/cogs/cleanup/cleanup.py
<|code_start|>import re
import discord
from discord.ext import commands
from redbot.core import checks, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import CogI18n
from redbot.core.utils.mod import slow_deletion, mass_purge
from redbot.cogs.mod.log import log
_ = Co... |
[V3] Help on non-existant subcommand
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
`help` fails with error when asking for subcommand on command with no subcommands
### Expected behavior
Tells user that no subcommands exists
### Actual behavior
```
Exception in command 'help'
... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... |
[V3] Help on non-existant subcommand
### Type:
- [ ] Suggestion
- [x] Bug
### Brief description of the problem
`help` fails with error when asking for subcommand on command with no subcommands
### Expected behavior
Tells user that no subcommands exists
### Actual behavior
```
Exception in command 'help'
... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... | redbot/core/help_formatter.py
<|code_start|>"""Overrides the built-in help formatter.
All help messages will be embed and pretty.
Most of the code stolen from
discord.ext.commands.formatter.py and
converted into embeds instead of codeblocks.
Docstr on cog class becomes category.
Docstr on command definition becomes ... |
[Mod] 'NoneType' object is not subscriptable
https://sentry.io/will-tekulve/bot-development/issues/531504175/
```
TypeError: 'NoneType' object is not subscriptable
File "redbot/cogs/mod/mod.py", line 987, in guild_unmute
success, message = await self.unmute_user(guild, channel, author, user)
File "redbot/cogs/... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from datetime import datetime, timedelta
from collections import deque, defaultdict, namedtuple
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import Co... | redbot/cogs/mod/mod.py
<|code_start|>import asyncio
from datetime import datetime, timedelta
from collections import deque, defaultdict, namedtuple
import discord
from discord.ext import commands
from redbot.core import checks, Config, modlog, RedContext
from redbot.core.bot import Red
from redbot.core.i18n import Co... |
[V3] Downloader repo issue
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [X] Bug
### Brief description of the problem
I can not add repos under the same name when I delete them.
### Exp... | redbot/core/utils/__init__.py
<|code_start|>__all__ = ['TYPE_CHECKING', 'NewType', 'safe_delete']
from pathlib import Path
import os
import shutil
try:
from typing import TYPE_CHECKING
except ImportError:
TYPE_CHECKING = False
try:
from typing import NewType
except ImportError:
def NewType(name, tp):... | redbot/core/utils/__init__.py
<|code_start|>__all__ = ['TYPE_CHECKING', 'NewType', 'safe_delete']
from pathlib import Path
import os
import shutil
try:
from typing import TYPE_CHECKING
except ImportError:
TYPE_CHECKING = False
try:
from typing import NewType
except ImportError:
def NewType(name, tp):... |
Problem with backup
Please be sure to read through other issues as well to make sure what you are suggesting/reporting has not already
been suggested/reported
### Type:
- [ ] Suggestion
- [x ] Bug
### Brief description of the problem
I get an error when trying to use backup.
### Expected behavior
The bot ... | redbot/core/core_commands.py
<|code_start|>import asyncio
import datetime
import importlib
import itertools
import logging
import os
import sys
import tarfile
import traceback
from collections import namedtuple
from pathlib import Path
from random import SystemRandom
from string import ascii_letters, digits
from distut... | redbot/core/core_commands.py
<|code_start|>import asyncio
import datetime
import importlib
import itertools
import logging
import os
import sys
import tarfile
import traceback
from collections import namedtuple
from pathlib import Path
from random import SystemRandom
from string import ascii_letters, digits
from distut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.