Instruction
stringlengths
13
145k
input_code
stringlengths
35
390k
output_code
stringlengths
35
390k
[Cleanup] Respect pinned mesages Ohhh ye, we're adding more upon Cleanup's logic like it already wasn't hard enough! 😏 Cleanup should respect pinned messages when cleaning up in any setting used by not removing them when their detected in the list.
redbot/cogs/cleanup/cleanup.py <|code_start|>import re import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_deletion, mass_purge from redbot.cogs.mod.log import log _ = Translator("Cleanup", __...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_deletion, mass_purge from redbot.cogs.mod.log import log _ = Translator("Cleanup", __...
[V3 Cleanup] [p]cleanup bot doesn't delete the message of the command itself ### Type: - Bug ### Brief description of the problem `[p]cleanup bot` should delete the message from which the command itself came, as is the nature of the command; to clean up bot commands and responses. Also, if a large amount of m...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_deletion, mass_purge from redbot.cogs.mod.log import log _ = Translator("Cleanup", __...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_deletion, mass_purge from redbot.cogs.mod.log import log _ = Translator("Cleanup", __...
[V3] Mod - Unmute still not working # Command bugs Did you find a bug with a command? Fill out the following: -->unmute server #### Command name unmute #### What cog is this command from? mod #### What were you expecting to happen? server unmute a user #### What actually happened? fails to unm...
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] Reason error ### Type: - [ ] Suggestion - [x] Bug ### Brief description of the problem ![image](https://user-images.githubusercontent.com/10146271/39540320-3a5e9352-4e3a-11e8-89b7-dee99e00eda7.png) ![image](https://user-images.githubusercontent.com/10146271/39540328-422de556-4e3a-11e8-8b68-2d66ba37ed88.pn...
redbot/cogs/modlog/modlog.py <|code_start|>import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box _ = Translator('ModLog', __file__) @cog_i18n(_) class ModLog: """Log for ...
redbot/cogs/modlog/modlog.py <|code_start|>import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box _ = Translator('ModLog', __file__) @cog_i18n(_) class ModLog: """Log for ...
[p]servers attempts to leave the wrong server [V3] # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name servers #### What cog is this command from? Core #### What were you expecting to happen? Expected the value stated to be the actual value. ##...
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 Streams] streamalert messages not tracked between restarts # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]streamalert twitch channel` #### What cog is this command from? `Streams` #### What were you expecting to happen? Stream alert m...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import TwitchStream, HitboxStream, MixerStream, PicartoStr...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import TwitchStream, HitboxStream, MixerStream, PicartoStr...
[V3 Streams] issue with `[p]streamset` # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `streamset` #### What cog is this command from? `Streams` #### What were you expecting to happen? Should output help #### What actually happened? ```p...
redbot/core/i18n.py <|code_start|>import re from pathlib import Path from . import commands __all__ = ['get_locale', 'set_locale', 'reload_locales', 'cog_i18n', 'Translator'] _current_locale = 'en_us' WAITING_FOR_MSGID = 1 IN_MSGID = 2 WAITING_FOR_MSGSTR = 3 IN_MSGSTR = 4 MSGID = 'msgid "' MSGSTR = 'msg...
redbot/core/i18n.py <|code_start|>import re from pathlib import Path from . import commands __all__ = ['get_locale', 'set_locale', 'reload_locales', 'cog_i18n', 'Translator'] _current_locale = 'en_us' WAITING_FOR_MSGID = 1 IN_MSGID = 2 WAITING_FOR_MSGSTR = 3 IN_MSGSTR = 4 MSGID = 'msgid "' MSGSTR = 'msg...
[V3 Parser] --dry-run flag not handled # Other bugs #### What were you trying to do? I was trying to run the bot with the `--dry-run` flag #### What were you expecting to happen? See the bot loading data, then stop before connecting to the gateway ``` --dry-run Makes Red quit with code 0 ju...
redbot/__main__.py <|code_start|>#!/usr/bin/env python # Discord Version check import sys import discord from redbot.core.bot import Red, ExitCodes from redbot.core.cog_manager import CogManagerUI from redbot.core.data_manager import load_basic_configuration, config_file from redbot.core.json_io import JsonIO from re...
redbot/__main__.py <|code_start|>#!/usr/bin/env python # Discord Version check import sys import discord from redbot.core.bot import Red, ExitCodes from redbot.core.cog_manager import CogManagerUI from redbot.core.data_manager import load_basic_configuration, config_file from redbot.core.json_io import JsonIO from re...
[V3] Warn command error # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name warn #### What cog is this command from? warnings #### What were you expecting to happen? Expected a user to be warned #### What actually happened? User was not warn...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remove_check, ) from redbot.core import ...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remove_check, ) from redbot.core import ...
Play command traceback on DM # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name play #### What cog is this command from? audio #### What were you expecting to happen? The bot should tell me that that command isn't available on DM's #### What a...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
[V3 Downloader] Error when adding repo multiple times # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name [p]repo add #### What cog is this command from? Downloader #### What were you expecting to happen? A message in Discord saying "That repo nam...
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 Downloader] cog list lists too much # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `cog list` #### What cog is this command from? Downloader #### What were you expecting to happen? List available cogs from provided Repo #### What actu...
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 Core] Increase the maximum amount of characters in a single help message ### Type: - [X] Suggestion - [ ] Bug ### Brief description of the problem Currently, the maximum amount of characters allowed in all fields combined in a single help embed is 1000. [See this code](https://github.com/Cog-Creators/Red-Di...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
[V3 Mongo] Error when removing instance ### Type: - [ ] Suggestion - [x] Bug When removing an instance with the launcher, this error occurs ```Py pi@raspberrypi:~ $ export PATH=.local/bin/ pi@raspberrypi:~ $ redbot-launcher ========================== Red Discord Bot - Launcher ========================== ...
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 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...
[V3] Error thrown in [p]now if reacting with something other than what bot is looking for. # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name [p]now #### What cog is this command from? audio #### What were you expecting to happen? nothing ####...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
[V3 Audio] No response whilst downloading Lavalink.jar When loading Audio and Lavalink.jar needs to be downloaded, the bot takes a very long time to respond, which will leave users wondering if the bot is even loading audio. Just a simple message saying "Downloading Lavalink.jar" or making the bot type whilst downlo...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path from aiohttp import ClientSession import shutil from .audio import Audio from .manager import start_lavalink_server from discord.ext import commands from redbot.core.data_manager import cog_data_path import redbot.core LAVALINK_DOWNLOAD_URL = ( ...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path from aiohttp import ClientSession import shutil import logging from .audio import Audio from .manager import start_lavalink_server from discord.ext import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.g...
[V3 Audio] Error on skip # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Skip a song using the command #### What were you expecting to happen? Make the bot skip the song #### What actually happened? ```Py E...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord import heapq import lavalink import math import re import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.utils.menus import menu, DEFAULT_CONTROLS, prev_page, next_page, close_menu ...
[V3] CLI prefix display ### Type: - [ ] Suggestion - [X] Bug ### Brief description of the problem When using the `--prefix` flag, the bot's loaded message still displays the prefix(es) it had stored prior (in some cases, this could be none) ### Expected behavior The new prefix(es) should be displayed ###...
redbot/core/events.py <|code_start|>import sys import codecs import datetime import logging from distutils.version import StrictVersion import aiohttp import pkg_resources import traceback from pkg_resources import DistributionNotFound import discord from discord.ext import commands from . import __version__ from ....
redbot/core/events.py <|code_start|>import sys import codecs import datetime import logging from distutils.version import StrictVersion import aiohttp import pkg_resources import traceback from pkg_resources import DistributionNotFound import discord from discord.ext import commands from . import __version__ from ....
[V3] More stuff with the token and resetting. Bot has no prompt for inserting a new token after a successful token reset from `python -m redbot instancename`, and launching again afterwards leads to the bot not asking for a new token. running `redbot-setup` again does not completely work either as there is no option fo...
redbot/__main__.py <|code_start|>#!/usr/bin/env python # Discord Version check import sys import discord from redbot.core.bot import Red, ExitCodes from redbot.core.cog_manager import CogManagerUI from redbot.core.data_manager import load_basic_configuration, config_file from redbot.core.json_io import JsonIO from re...
redbot/__main__.py <|code_start|>#!/usr/bin/env python # Discord Version check import sys import discord from redbot.core.bot import Red, ExitCodes from redbot.core.cog_manager import CogManagerUI from redbot.core.data_manager import load_basic_configuration, config_file from redbot.core.json_io import JsonIO from re...
[V3 Menu] Listen before adding reactions # Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [ ] Cog - [ ] Command - [x] API functionality...
redbot/core/utils/menus.py <|code_start|>""" Original source of reaction-based menu idea from https://github.com/Lunar-Dust/Dusty-Cogs/blob/master/menu/menu.py Ported to Red V3 by Palm\_\_ (https://github.com/palmtree5) """ import asyncio import discord from redbot.core import commands async def menu( ctx: comm...
redbot/core/utils/menus.py <|code_start|>""" Original source of reaction-based menu idea from https://github.com/Lunar-Dust/Dusty-Cogs/blob/master/menu/menu.py Ported to Red V3 by Palm\_\_ (https://github.com/palmtree5) """ import asyncio import contextlib from typing import Union, Iterable import discord from redbot...
[V3 Backup] Error when backing up repos ``` Exception in command 'backup' Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/discord/ext/commands/core.py", line 62, in wrapped ret = yield from coro(*args, **kwargs) File "/usr/local/lib/python3.6/dist-packages/redbot/core/core_c...
redbot/core/core_commands.py <|code_start|>import asyncio import datetime import importlib import itertools import json 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...
redbot/core/core_commands.py <|code_start|>import asyncio import datetime import importlib import itertools import json 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...
[V3 Downloader] [p]repo add does 3rd party check without arguments # Command bugs #### Command name [p]repo add #### What cog is this command from? Downloader #### What were you expecting to happen? The command should just show the help message, I shouldn't have to agree unless I'm actually adding a r...
redbot/cogs/downloader/checks.py <|code_start|>import asyncio import discord from discord.ext import commands __all__ = ["install_agreement"] REPO_INSTALL_MSG = ( "You're about to add a 3rd party repository. The creator of Red" " and its community have no responsibility for any potential " "damage that t...
redbot/cogs/downloader/checks.py <|code_start|>import asyncio import discord from redbot.core import commands __all__ = ["do_install_agreement"] REPO_INSTALL_MSG = ( "You're about to add a 3rd party repository. The creator of Red" " and its community have no responsibility for any potential " "damage tha...
[V3 Help] Displaying the bot's mention as a prefix @Kowlin has given a good example of how this is currently displayed here: ![screenshot](https://media.discordapp.net/attachments/251782448629809152/453437266119884811/unknown.png?width=432&height=465) Obviously this is ugly and undesired - I think in this circumsta...
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 ...
[Economy] Using [p]leaderboard in DM causes an error # Command bugs #### Command name (prefix)leaderboard #### What cog is this command from? Economy #### What were you expecting to happen? Display the global leaderboard, or display a message stating that the command isn't available in DMs. #### Wh...
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 JSON] Direct reference to mutable datastore being returned # Other bugs The JSON driver is returning direct references to the driver's cache. This is should not be happening as mutating the returned value will cause the mutation to also occur in the cache. This can be shown by the following: ```py >>> dict1 = aw...
redbot/core/config.py <|code_start|>import logging import collections from copy import deepcopy from typing import Union, Tuple, TYPE_CHECKING import discord from .data_manager import cog_data_path, core_data_path from .drivers import get_driver if TYPE_CHECKING: from .drivers.red_base import BaseDriver log = l...
redbot/core/config.py <|code_start|>import logging import collections from copy import deepcopy from typing import Union, Tuple, TYPE_CHECKING import discord from .data_manager import cog_data_path, core_data_path from .drivers import get_driver if TYPE_CHECKING: from .drivers.red_base import BaseDriver log = l...
[V3 Config] Detect changes on backend, and only write when there are changes. - [ ] Cog - [ ] Command - [X] API functionality Right now, config will always write when using a context manager, there's no need for this since we should be returning a copy of the data, not the original (see #1855 ). While this can be ...
redbot/core/config.py <|code_start|>import logging import collections from copy import deepcopy from typing import Union, Tuple, TYPE_CHECKING import discord from .data_manager import cog_data_path, core_data_path from .drivers import get_driver if TYPE_CHECKING: from .drivers.red_base import BaseDriver log = l...
redbot/core/config.py <|code_start|>import logging import collections from copy import deepcopy from typing import Union, Tuple, TYPE_CHECKING import discord from .data_manager import cog_data_path, core_data_path from .drivers import get_driver if TYPE_CHECKING: from .drivers.red_base import BaseDriver log = l...
[V3 Permissions] UX I'll be going through and improving permissions UX a bit later. There are a couple of things which were pointed out by @retke which can be improved. Namely: - [x] Consistent Argument ordering - [x] Consistent way to remove settings
redbot/cogs/permissions/converters.py <|code_start|>from redbot.core import commands from typing import Tuple class CogOrCommand(commands.Converter): async def convert(self, ctx: commands.Context, arg: str) -> Tuple[str]: ret = ctx.bot.get_cog(arg) if ret: return "cogs", ret.__class__....
redbot/cogs/permissions/converters.py <|code_start|>from redbot.core import commands from typing import Tuple class CogOrCommand(commands.Converter): async def convert(self, ctx: commands.Context, arg: str) -> Tuple[str]: ret = ctx.bot.get_cog(arg) if ret: return "cogs", ret.__class__....
[V2] Audio voice # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Trying to play music while bot is idle in a voice channel will eror out if that voice channel is full with the bot in the channel. #### What were you ex...
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...
[v2 Downloader] requirements with dotted package names crash the library check #### Command name `cog install calebj captcha` #### What cog is this command from? Downloader #### What were you expecting to happen? Downloader should have pulled in the dependencies like normal using pip before installing th...
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...
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...
[V3] Dev commands and discord.ext.commands Right now, debug/eval (and repl, maybe?) expose `discord.ext.commands` as `commands` Given that we subclass various things in this for our use in `redbot.core.commands`, shouldn't we be exposing our version? In either case, the other is still importable, but it seems our de...
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 . import checks, commands from .i18n import Translator from .utils.chat_formatting import box, pagify """ Notice: 95% of ...
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 . import checks, commands from .i18n import Translator from .utils.chat_formatting import box, pagify """ Notice: 95% of ...
[V3 Bank] bank.withdraw/deposit_credits breaks mongodb with floats # Other bugs If you give bank.deposit_credits or bank.withdraw_credit a float instead of an int while using MongoDB, the users balance is stuck as a double. Because of this many cogs break because they expect an int, but get a float. #### What wer...
redbot/core/bank.py <|code_start|>import datetime import os from typing import Union, List import discord from redbot.core import Config __all__ = [ "Account", "get_balance", "set_balance", "withdraw_credits", "deposit_credits", "can_spend", "transfer_credits", "wipe_bank", "get_a...
redbot/core/bank.py <|code_start|>import datetime import os from typing import Union, List import discord from redbot.core import Config __all__ = [ "Account", "get_balance", "set_balance", "withdraw_credits", "deposit_credits", "can_spend", "transfer_credits", "wipe_bank", "get_a...
[V3 ModLog] Error in command "case" # Command bugs #### Command name [p]case #### What cog is this command from? ModLog #### What were you expecting to happen? To show me information about a case. #### What actually happened? I get this error: ![image](https://user-images.githubusercontent.co...
redbot/cogs/modlog/modlog.py <|code_start|>import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box _ = Translator("ModLog", __file__) @cog_i18n(_) class ModLog: """Log for ...
redbot/cogs/modlog/modlog.py <|code_start|>import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box _ = Translator("ModLog", __file__) @cog_i18n(_) class ModLog: """Log for ...
[V3 CogManager] Paths being added implicitly and incorrectly # Other bugs Paths (specifically the core cogs path and the cog install path) are being added to CogManager's config implicitly and incorrectly whenever `CogManager.add_path()` or `CogManager.remove_path()` is called. Basically, the methods get the existin...
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, commands 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, commands from .config impor...
[V3 Unload/Reload] edge cases in bot.unload_extension ### The issue Right now, `bot.unload_extension` will break unload and reload if any cogs exist on the bot where `Cog.__module__` is `None` While this is definitely an edge case, I think it is at least worth considering just filtering out any case where there ...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
[CI] Travis builds broken due to link checking Oracle/Java has blocked the Travis server from connecting to their site. This is resulting in every build failing whereby Travis is blocked from accessing the Java site. **Temporary solution:** I've disabled the enforcement of rules on Maintainers. **Handle with care.*...
docs/conf.py <|code_start|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Red - Discord Bot documentation build configuration file, created by # sphinx-quickstart on Thu Aug 10 23:18:25 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configur...
docs/conf.py <|code_start|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Red - Discord Bot documentation build configuration file, created by # sphinx-quickstart on Thu Aug 10 23:18:25 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configur...
[V3 Core] Unable to load streams cog with a set mixer alerts # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name [p]load streams #### What cog is this command from? Core and Streams #### What were you expecting to happen? For the streams cog to lo...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
[V3] Addrole command errors on hierarchy issue Cleaner output for hierarchy issue with [p] addrole instead of giving error. ![image](https://user-images.githubusercontent.com/10146271/43022519-788fd718-8c5f-11e8-8979-95143db2c567.png)
redbot/cogs/admin/admin.py <|code_start|>from typing import Tuple import discord from redbot.core import Config, checks, commands import logging from redbot.core.utils.chat_formatting import box from .announcer import Announcer from .converters import MemberDefaultAuthor, SelfRole log = logging.getLogger("red.admi...
redbot/cogs/admin/admin.py <|code_start|>from typing import Tuple import discord from redbot.core import Config, checks, commands import logging from redbot.core.utils.chat_formatting import box from .announcer import Announcer from .converters import MemberDefaultAuthor, SelfRole log = logging.getLogger("red.admi...
[V3/Streams] streamalert list command is missing a doc string. #### What were you trying to do? call `[p]help` on streamalert list` #### What were you expecting to happen? Help message from the doc string would be displayed. #### What actually happened? No help message information was displayed, because the ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
[V3 Reports] Error when report interact is used in DM # Command bugs #### Command name [p]report interact <case_no> #### What cog is this command from? Reports #### What were you expecting to happen? For this command to not be usable in DMs #### What actually happened? ``` Traceback (most recen...
redbot/cogs/reports/reports.py <|code_start|>import logging import asyncio from typing import Union from datetime import timedelta from copy import copy import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify, box from redbot.core.utils.ant...
redbot/cogs/reports/reports.py <|code_start|>import logging import asyncio from typing import Union from datetime import timedelta from copy import copy import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify, box from redbot.core.utils.ant...
Launcher Runtime Error catch misinforms user # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Load a custom cog. #### What were you expecting to happen? #### What actually happened? Redbot (or perhaps the Launcher...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
redbot/core/bot.py <|code_start|>import asyncio import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path import discord import sys from discord.ext.commands.bot import BotBase from discord.ext.commands import GroupMixin from disc...
(V3) Audio cog doesnt load # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? I was normally, like everyone does, trying to load audio cog. #### What were you expecting to happen? I was expecting it to load normally an...
redbot/cogs/audio/manager.py <|code_start|>import shlex import shutil import asyncio from subprocess import Popen, DEVNULL, PIPE import os import logging from typing import Optional, Tuple _JavaVersion = Tuple[int, int] log = logging.getLogger("red.audio.manager") proc = None SHUTDOWN = asyncio.Event() def has_jav...
redbot/cogs/audio/manager.py <|code_start|>import shlex import shutil import asyncio import asyncio.subprocess import os import logging import re from subprocess import Popen, DEVNULL from typing import Optional, Tuple _JavaVersion = Tuple[int, int] log = logging.getLogger("red.audio.manager") proc = None SHUTDOWN =...
[V3 Streams] Youtube alerts added by ID have NoneType name # Command bugs Red v3.0.0.b18 #### Command name [p]streamalert youtube UC79_r-MK8-bmJCYmyzAkvPw #### What cog is this command from? Streams #### What were you expecting to happen? Add non-partner youtube channel ("Cade") to streamalert set...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
[V3 Streams] Misleading error message # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]streamalert twitch channel #name_of_a_discord_channel` #### What cog is this command from? Streams #### What were you expecting to happen? The bot tellin...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
[V3 Warnings] AllowCustomReasons -> This is not a registered reason # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name warn #### What cog is this command from? warnings #### What were you expecting to happen? A user to be warned with whatever rea...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remove_check, ) from redbot.core import ...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remove_check, ) from redbot.core import ...
[Streams] Config being saved once for every poll As you can see here, streams is saving to config every 60 seconds, even when there is not change in status of any streamalerts: ![image](https://user-images.githubusercontent.com/7438501/44614935-df8b0180-a871-11e8-96be-3c78883047fe.png) The write should only be occu...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
redbot/cogs/streams/streams.py <|code_start|>import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, HitboxStream, ...
[V3 Mongo] Unescaped username/password # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? `redbot <instance>` to start the instance after setting up mongodb with authentication. Using the latest V3/Develop build. #### Wha...
redbot/core/drivers/red_mongo.py <|code_start|>import motor.motor_asyncio from .red_base import BaseDriver __all__ = ["Mongo"] _conn = None def _initialize(**kwargs): host = kwargs["HOST"] port = kwargs["PORT"] admin_user = kwargs["USERNAME"] admin_pass = kwargs["PASSWORD"] db_name = kwargs.get...
redbot/core/drivers/red_mongo.py <|code_start|>import motor.motor_asyncio from .red_base import BaseDriver from urllib.parse import quote_plus __all__ = ["Mongo"] _conn = None def _initialize(**kwargs): host = kwargs["HOST"] port = kwargs["PORT"] admin_user = kwargs["USERNAME"] admin_pass = kwargs[...
[CustomCom] Old custom commands causing issues with new changes Calling an old custom command created prior to #2051 results in the following traceback: ```py [09/09/2018 14:13] ERROR events on_error 182: Exception in message Traceback (most recent call last): File "/home/tobyh/Red-DiscordBot/.venv/lib/python3.7/...
redbot/cogs/customcom/customcom.py <|code_start|>import os import re import random from datetime import datetime from inspect import Parameter from collections import OrderedDict from typing import Mapping import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import bo...
redbot/cogs/customcom/customcom.py <|code_start|>import os import re import random from datetime import datetime from inspect import Parameter from collections import OrderedDict from typing import Mapping import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import bo...
[CustomCommands] Cooldown for custom commands # Feature request #### Select the type of feature you are requesting: - [ ] Cog - [x] Command - [ ] API functionality #### Describe your requested feature In customcog cog add the possibility to mention a cooldown for the custom command `[p]customcom add c...
redbot/cogs/customcom/customcom.py <|code_start|>import os import re import random from datetime import datetime from inspect import Parameter from collections import OrderedDict from typing import Mapping import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import bo...
redbot/cogs/customcom/customcom.py <|code_start|>import os import re import random from datetime import datetime, timedelta from inspect import Parameter from collections import OrderedDict from typing import Mapping import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formattin...
[V3] Ban peers with hackban # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name [p]hackban #### What cog is this command from? Mod #### What were you expecting to happen? When called by a mod on another mod, display error message: "I cannot let yo...
redbot/cogs/mod/mod.py <|code_start|>import asyncio from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core...
redbot/cogs/mod/mod.py <|code_start|>import asyncio from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core...
[V3] local blacklist ignores roles # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name localblacklist #### What cog is this command from? core #### What were you expecting to happen? Adding a role to the local blacklist would/should disallow the p...
redbot/core/global_checks.py <|code_start|>"""The checks in this module run on every command.""" from . import commands def init_global_checks(bot): @bot.check async def global_perms(ctx): """Check the user is/isn't globally whitelisted/blacklisted.""" if await bot.is_owner(ctx.author): ...
redbot/core/global_checks.py <|code_start|>"""The checks in this module run on every command.""" from . import commands def init_global_checks(bot): @bot.check async def global_perms(ctx): """Check the user is/isn't globally whitelisted/blacklisted.""" if await bot.is_owner(ctx.author): ...
[V3 Mod] Tempban doesn't remove the user from settings on unban # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name tempban #### What cog is this command from? Mod #### What were you expecting to happen? When the user is unbanned and then permanen...
redbot/cogs/mod/mod.py <|code_start|>import asyncio from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core...
redbot/cogs/mod/mod.py <|code_start|>import asyncio from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core...
[V3 Audio] [p]playlist list Traceback # Command bugs #### Command name [p]playlist list #### What cog is this command from? audio #### What were you expecting to happen? A list of the saved playlist #### What actually happened? I get a Traceback: ``` [06/10/2018 13:59] ERROR events on_command_...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord from fuzzywuzzy import process import heapq import lavalink import math import os import random import re import time import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.data_mana...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord from fuzzywuzzy import process import heapq import lavalink import math import os import random import re import time import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.data_mana...
[V3 Core] Backup TypeError # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name backup #### What cog is this command from? Core #### What were you expecting to happen? Dunno, I was testing to see what backup does, but an error is likely not expecte...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
[V3 Config] Overflow error # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? `bank set <some integer greater than 2^63-1>` #### What were you expecting to happen? The credits to be set to the specified integer. ###...
redbot/cogs/economy/economy.py <|code_start|>import calendar import logging import random from collections import defaultdict, deque from enum import Enum from typing import cast, Iterable import discord from redbot.cogs.bank import check_global_setting_guildowner, check_global_setting_admin from redbot.core import C...
redbot/cogs/economy/economy.py <|code_start|>import calendar import logging import random from collections import defaultdict, deque from enum import Enum from typing import cast, Iterable import discord from redbot.cogs.bank import check_global_setting_guildowner, check_global_setting_admin from redbot.core import C...
[V3 Config] Config does not reject bad keys Including a `.` or starting a keyname with `$` needs to be invalid in config because of mongoDB backend support. Config will work just fine for this on the json backend, but not with the mongodb one because these characters are not allowed in field names for mongo. Instea...
redbot/core/drivers/red_mongo.py <|code_start|>import motor.motor_asyncio from .red_base import BaseDriver from urllib.parse import quote_plus __all__ = ["Mongo"] _conn = None def _initialize(**kwargs): uri = kwargs.get("URI", "mongodb") host = kwargs["HOST"] port = kwargs["PORT"] admin_user = kwar...
redbot/core/drivers/red_mongo.py <|code_start|>import re from typing import Match, Pattern from urllib.parse import quote_plus import motor.core import motor.motor_asyncio from .red_base import BaseDriver __all__ = ["Mongo"] _conn = None def _initialize(**kwargs): uri = kwargs.get("URI", "mongodb") host ...
[V3] Cleanup bot does not clean aliases # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]cleanup bot` #### What cog is this command from? Cleanup #### What were you expecting to happen? Cleans command messages (including aliases) and messag...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_dele...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable, Set import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow...
[V3] Escape markdown properly on Custom Command list # Command bugs Yes I found bug #### Command name `cc list` #### What cog is this command from? customcom #### What were you expecting to happen? It list the cc beautifully #### What actually happened? ![image](https://user-images.githubuse...
redbot/cogs/customcom/customcom.py <|code_start|>import re import random from datetime import datetime, timedelta from inspect import Parameter from collections import OrderedDict from typing import Mapping, Tuple, Dict import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_format...
redbot/cogs/customcom/customcom.py <|code_start|>import re import random from datetime import datetime, timedelta from inspect import Parameter from collections import OrderedDict from typing import Mapping, Tuple, Dict import discord from redbot.core import Config, checks, commands from redbot.core.i18n import Trans...
[V3] Warnings cog issue # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name .warn #### What cog is this command from? Warnings #### What were you expecting to happen? When a user goes above the points threshold, the assigned action should occur. ...
redbot/cogs/warnings/helpers.py <|code_start|>from copy import copy import asyncio import inspect import discord from redbot.core import Config, checks, commands from redbot.core.i18n import Translator from redbot.core.utils.predicates import MessagePredicate _ = Translator("Warnings", __file__) async def warning_p...
redbot/cogs/warnings/helpers.py <|code_start|>from copy import copy import asyncio import inspect import discord from redbot.core import Config, checks, commands from redbot.core.i18n import Translator from redbot.core.utils.predicates import MessagePredicate _ = Translator("Warnings", __file__) async def warning_p...
[Cleanup] No member converter on "Cleanup user" # Command bugs #### Command name ``cleanup user <user> <amount>`` #### What cog is this command from? Cleanup #### What were you expecting to happen? Cleaning up the amount of user. #### What actually happened? See Traceback: ``` [11/10/2018 11:04] ERROR e...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_dele...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow_dele...
[Streams] discord.NotFound error on load This was reported as an error received by a user when trying to load streams: ```py Exception during loading of cog Traceback (most recent call last): File "/home/jjay/rewrite/lib/python3.6/site-packages/redbot/core/core_commands.py", line 100, in _load await bot.load...
redbot/cogs/streams/streams.py <|code_start|>import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, ...
redbot/cogs/streams/streams.py <|code_start|>import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, ...
[V3] Unmute has odd behaviour on admins # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name Unmute #### What cog is this command from? Mod #### What were you expecting to happen? Unmute someone from the server. #### What actually happened? I...
redbot/cogs/mod/mod.py <|code_start|>import asyncio import contextlib from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple from typing import cast import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n im...
redbot/cogs/mod/mod.py <|code_start|>import asyncio import contextlib from datetime import datetime, timedelta from collections import deque, defaultdict, namedtuple from typing import cast import discord from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n im...
[Downloader/Converter] _ is not Defined # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name cog uninstall #### What cog is this command from? Downloader & Converters.py #### What were you expecting to happen? Normal error saying "cog is not instal...
redbot/cogs/downloader/converters.py <|code_start|>import discord from redbot.core import commands from .installable import Installable class InstalledCog(Installable): @classmethod async def convert(cls, ctx: commands.Context, arg: str) -> Installable: downloader = ctx.bot.get_cog("Downloader") ...
redbot/cogs/downloader/converters.py <|code_start|>import discord from redbot.core import commands from redbot.core.i18n import Translator from .installable import Installable _ = Translator("Koala", __file__) class InstalledCog(Installable): @classmethod async def convert(cls, ctx: commands.Context, arg: st...
[Downloader] Cogs don't get unloaded after uninstalling. # Other bugs #### What were you trying to do? When uninstalling a cog from downloader the cog does not get unloaded. #### What were you expecting to happen? The cog being deleted **&** unloaded. #### What actually happened? The cog only got de...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
[V3 Audio] Restrict remote audio stream locations by default. # Feature request #### Select the type of feature you are requesting: - [ ] Cog - [ ] Command - [X] API functionality #### Describe your requested feature For multiple reasons, we shouldn't be allowing the play command to grab arbitrary remote ...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord from fuzzywuzzy import process import heapq import lavalink import math import os import random import re import time import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.data_mana...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import datetime import discord from fuzzywuzzy import process import heapq import lavalink import math import os import random import re import time import redbot.core from redbot.core import Config, commands, checks, bank from redbot.core.data_mana...
[V3 Streams] Toggle Mention Permissions when live # Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [x] Cog - [ ] Command - [ ] API func...
redbot/cogs/streams/streams.py <|code_start|>import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, ...
redbot/cogs/streams/streams.py <|code_start|>import contextlib import discord from redbot.core import Config, checks, commands from redbot.core.utils.chat_formatting import pagify from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from .streamtypes import ( Stream, TwitchStream, ...
[Filter] [V3] Removes words not added to the filter. # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? we added certain words to the filter to be filtered on the discord server. and we want the words that consist of the ba...
redbot/cogs/filter/filter.py <|code_start|>import discord from typing import Union from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import pagify _ = Translator("Filter", __file__) @cog_i...
redbot/cogs/filter/filter.py <|code_start|>import discord import re from typing import Union, Set from redbot.core import checks, Config, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import pagify RE_WORD_SPLIT = re.compile(r...
[V3 Cleanup] "Cleanup user" does not clean up the command itself # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name Cleanup user #### What cog is this command from? cleanup #### What were you expecting to happen? Bot deletes the command after it ...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable, Set import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable, Set import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow...
[V3 Permissions] Rule precedence bug. Applying a default to a Cog as well as to a command within a Cog (Default deny cog, allow command) does not allow the command. With current intended precedence, this should allow the command. Initially reported by <@203619925179236352> (Céli28), confirmed by me and <@218773...
redbot/core/commands/requires.py <|code_start|>""" commands.requires ================= This module manages the logic of resolving command permissions and requirements. This includes rules which override those requirements, as well as custom checks which can be overriden, and some special checks like bot permissions che...
redbot/core/commands/requires.py <|code_start|>""" commands.requires ================= This module manages the logic of resolving command permissions and requirements. This includes rules which override those requirements, as well as custom checks which can be overriden, and some special checks like bot permissions che...
[V3 Audio] Unable to set external lavalink Right now, audio can't be loaded if lavalink can't be started. If the reason it can't be started is the port is already in use by another instance or by something completely unrelated, then the cog can't be configured to use an external lavalink server, and thus gets locked in...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path from aiohttp import ClientSession import shutil import logging from .audio import Audio from .manager import start_lavalink_server from redbot.core import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.g...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path import logging from .audio import Audio from .manager import start_lavalink_server, maybe_download_lavalink from redbot.core import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.getLogger("red.audio") ...
is_automod_immune raises error on webhook messages # Other bugs #### What were you trying to do? Checking `is_automod_immune` inside `on_message` with a webhook message update. #### What were you expecting to happen? `is_automod_immune` would return True or False depending on who sent the message. #### W...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
[V3 Help] Help filtering bug. # Other bugs #### What were you trying to do? Using permissions, default deny a Cog, reallow a command from it to some scope. #### What were you expecting to happen? Help should show that cog in scopes where there is at least 1 usable command from it. #### What actually happ...
redbot/cogs/permissions/permissions.py <|code_start|>import asyncio import io import textwrap from copy import copy from typing import Union, Optional, Dict, List, Tuple, Any, Iterator, ItemsView, cast import discord import yaml from schema import And, Or, Schema, SchemaError, Optional as UseOptional from redbot.core ...
redbot/cogs/permissions/permissions.py <|code_start|>import asyncio import io import textwrap from copy import copy from typing import Union, Optional, Dict, List, Tuple, Any, Iterator, ItemsView, cast import discord import yaml from schema import And, Or, Schema, SchemaError, Optional as UseOptional from redbot.core ...
[Permissions] Default rules being ignored sometimes Whilst trying (and failing) to reproduce #2313, I came across a bug with default rules which was different to the one described there. In particular, whenever a default rule was set for a command/cog, but an explicit rule was set for a subcommand, the default rule ...
redbot/core/commands/requires.py <|code_start|>""" commands.requires ================= This module manages the logic of resolving command permissions and requirements. This includes rules which override those requirements, as well as custom checks which can be overriden, and some special checks like bot permissions che...
redbot/core/commands/requires.py <|code_start|>""" commands.requires ================= This module manages the logic of resolving command permissions and requirements. This includes rules which override those requirements, as well as custom checks which can be overriden, and some special checks like bot permissions che...
[Core] DataManager/Bundled_Data_Path cannot be used in __init__ # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? have bundled_data_path in a variable initialized in `__init__` #### What were you expecting to happen? ...
redbot/core/data_manager.py <|code_start|>import sys import os from pathlib import Path from typing import List from copy import deepcopy import hashlib import shutil import logging import appdirs import tempfile from .json_io import JsonIO __all__ = [ "create_temp_config", "load_basic_configuration", "c...
redbot/core/data_manager.py <|code_start|>import inspect import logging import os import sys import tempfile from copy import deepcopy from pathlib import Path import appdirs from discord.utils import deprecated from . import commands from .json_io import JsonIO __all__ = [ "create_temp_config", "load_basic_...
[V3 General] urban command throws an error if the message is deleted before menu timeout # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name urban #### What cog is this command from? general #### What were you expecting to happen? The bot should s...
redbot/core/utils/menus.py <|code_start|># Original source of reaction-based menu idea from # https://github.com/Lunar-Dust/Dusty-Cogs/blob/master/menu/menu.py # # Ported to Red V3 by Palm\_\_ (https://github.com/palmtree5) import asyncio import contextlib from typing import Union, Iterable, Optional import discord fr...
redbot/core/utils/menus.py <|code_start|># Original source of reaction-based menu idea from # https://github.com/Lunar-Dust/Dusty-Cogs/blob/master/menu/menu.py # # Ported to Red V3 by Palm\_\_ (https://github.com/palmtree5) import asyncio import contextlib from typing import Union, Iterable, Optional import discord fr...
[V3 CogManager] Paths issues # Command bugs #### Command name This affects [p]paths and [p]removepath, and loading v3 core cogs when there is a v2 install on the same machine/vps #### What cog is this command from? CogManagerUI #### What were you expecting to happen? For removepath to be able to remove ...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
Cannot convert from JSON to MongoDB # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? <!-- Replace this line with a description of what you were trying to do --> Edit an instance to modify its storage type from JSON to M...
redbot/setup.py <|code_start|>#!/usr/bin/env python import argparse import asyncio import json import os 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_...
redbot/setup.py <|code_start|>#!/usr/bin/env python3 import argparse import asyncio import json import os 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_...
[CustomCom] CC list markdown does not properly escape. The CC list does not properly escape markdown causing the bellow issue. ![image](https://user-images.githubusercontent.com/10947836/48375198-77f18f00-e6c7-11e8-8a3c-1481266bd43c.png)
redbot/cogs/customcom/customcom.py <|code_start|>import re import random from datetime import datetime, timedelta from inspect import Parameter from collections import OrderedDict from typing import Mapping, Tuple, Dict, Set import discord from redbot.core import Config, checks, commands from redbot.core.i18n import ...
redbot/cogs/customcom/customcom.py <|code_start|>import re import random from datetime import datetime, timedelta from inspect import Parameter from collections import OrderedDict from typing import Mapping, Tuple, Dict, Set import discord from redbot.core import Config, checks, commands from redbot.core.i18n import ...
[V3 Backup] Uncaught exceptions Backup command does not properly handle filesize issues or closed DMs. Needs fixing for RC3.
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
[V3] redbot-setup errors when importing data from MongoDB to JSON # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Edit an existing instance using `redbot-setup --edit`, switch from MongoDB to JSON and import the data #...
redbot/setup.py <|code_start|>#!/usr/bin/env python3 import argparse import asyncio import json import os 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_...
redbot/setup.py <|code_start|>#!/usr/bin/env python3 import argparse import asyncio import json import os 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_...
[V3 Permissions] Permission hooks don't set state Permission hooks forcibly allowing a command don't set the permission state to allowed, meaning it's impossible to detect that normal behavior was overridden in this case. As already shown in voice checks for mod cog, having access to the intended state is important...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
[Downloader] Install requirements for shared libraries # Feature request <!-- This template is for feature requests. Please fill out the following: --> #### Select the type of feature you are requesting: - [ ] Cog - [ ] Command - [X] API functionality #### Describe your requested feature As far as I ca...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
[Warnings] [p]warnings dose not allow user mention # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> [p]warnings [p]unwarn #### What cog is this command from? Warnings #### What were you expecting to happen? [p]warnings and [p]unwarn would allow user mention to s...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remove_check, ) from redbot.core import ...
redbot/cogs/warnings/warnings.py <|code_start|>from collections import namedtuple from typing import Union, Optional import discord import asyncio from redbot.cogs.warnings.helpers import ( warning_points_add_check, get_command_for_exceeded_points, get_command_for_dropping_points, warning_points_remov...
[V3 Permissions] Rule precedence bug. Applying a default to a Cog as well as to a command within a Cog (Default deny cog, allow command) does not allow the command. With current intended precedence, this should allow the command. Initially reported by <@203619925179236352> (Céli28), confirmed by me and <@218773...
redbot/core/commands/commands.py <|code_start|>"""Module for command helpers and classes. This module contains extended classes and functions which are intended to replace those from the `discord.ext.commands` module. """ import inspect import weakref from typing import Awaitable, Callable, Dict, List, Optional, Tuple...
redbot/core/commands/commands.py <|code_start|>"""Module for command helpers and classes. This module contains extended classes and functions which are intended to replace those from the `discord.ext.commands` module. """ import inspect import weakref from typing import Awaitable, Callable, Dict, List, Optional, Tuple...
[V3] ctx.send_interactive traceback on prompt deletion. If the prompt is deleted before the bot tries to, you get a traceback.
redbot/core/commands/context.py <|code_start|>import asyncio from typing import Iterable, List import discord from discord.ext import commands from .requires import PermState from ..utils.chat_formatting import box from ..utils.predicates import MessagePredicate from ..utils import common_filters TICK = "\N{WHITE HEA...
redbot/core/commands/context.py <|code_start|>import asyncio import contextlib from typing import Iterable, List import discord from discord.ext import commands from .requires import PermState from ..utils.chat_formatting import box from ..utils.predicates import MessagePredicate from ..utils import common_filters TI...
[Permissions] Allow for mutiple IDs in permissions # Feature request #### Select the type of feature you are requesting: - [x] Cog - [x] Command - [ ] API functionality #### Describe your requested feature This idea is quite a simple one but I think this will go a long way in the usability and the speed o...
redbot/cogs/permissions/permissions.py <|code_start|>import asyncio import io import textwrap from copy import copy from typing import Union, Optional, Dict, List, Tuple, Any, Iterator, ItemsView, cast import discord import yaml from schema import And, Or, Schema, SchemaError, Optional as UseOptional from redbot.core ...
redbot/cogs/permissions/permissions.py <|code_start|>import asyncio import io import textwrap from copy import copy from typing import Union, Optional, Dict, List, Tuple, Any, Iterator, ItemsView, cast import discord import yaml from schema import And, Or, Schema, SchemaError, Optional as UseOptional from redbot.core ...
[Modlog API] Allow lookup via UserID # Feature request #### Select the type of feature you are requesting: - [ ] Cog - [ ] Command - [x] API functionality #### Describe your requested feature Allow the modlog API to look up cases by userID, this can help with various cases whereby a cog creator wants to loo...
redbot/cogs/modlog/modlog.py <|code_start|>from typing import Optional import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box _ = Translator("ModLog", __file__) @cog_i18n(_) ...
redbot/cogs/modlog/modlog.py <|code_start|>from typing import Optional, Union import discord from redbot.core import checks, modlog, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.chat_formatting import box from redbot.core.utils.menus import menu, DE...
V3 Handler not shutting up after custom error handler. # Other bugs <!-- Did you find a bug with something other than a command? Fill out the following: --> #### What were you trying to do? Replace a redbot error message (in this case the message displayed after CommandOnCooldown was triggered) with a custo...
redbot/core/commands/commands.py <|code_start|>"""Module for command helpers and classes. This module contains extended classes and functions which are intended to replace those from the `discord.ext.commands` module. """ import inspect import weakref from typing import Awaitable, Callable, Dict, List, Optional, Tuple...
redbot/core/commands/commands.py <|code_start|>"""Module for command helpers and classes. This module contains extended classes and functions which are intended to replace those from the `discord.ext.commands` module. """ import inspect import weakref from typing import Awaitable, Callable, Dict, List, Optional, Tuple...
[V3 Audio] Unable to set external lavalink Right now, audio can't be loaded if lavalink can't be started. If the reason it can't be started is the port is already in use by another instance or by something completely unrelated, then the cog can't be configured to use an external lavalink server, and thus gets locked in...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path from aiohttp import ClientSession import shutil import logging from .audio import Audio from .manager import start_lavalink_server from redbot.core import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.g...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path import logging from .audio import Audio from .manager import start_lavalink_server, maybe_download_lavalink from redbot.core import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.getLogger("red.audio") ...
[Audio] Internal Lavalink.jar looping on startup When starting the audio module with internal lavalink.jar the lavalink server never fully starts continuously restarting. This behavior will continue even after unloading the audio cog, only stopping after the bot is closed. Setting the lavalink server as external on ...
redbot/cogs/audio/__init__.py <|code_start|>from pathlib import Path import logging from .audio import Audio from .manager import start_lavalink_server, maybe_download_lavalink from redbot.core import commands from redbot.core.data_manager import cog_data_path import redbot.core log = logging.getLogger("red.audio") ...
redbot/cogs/audio/__init__.py <|code_start|>from redbot.core import commands from .audio import Audio async def setup(bot: commands.Bot): cog = Audio(bot) await cog.initialize() bot.add_cog(cog) <|code_end|> redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import base64 import datet...
Partial translation display # Other bugs #### What were you trying to do? I translated several files into Russian on crowdin. I downloaded them and replaced the files on my server. I did not make any more changes on the server. Then I changed the language to Russian (!set locale ru-RU). #### What were you ...
redbot/core/i18n.py <|code_start|>import os import re from pathlib import Path from typing import Callable, Union __all__ = ["get_locale", "set_locale", "reload_locales", "cog_i18n", "Translator"] _current_locale = "en_us" WAITING_FOR_MSGID = 1 IN_MSGID = 2 WAITING_FOR_MSGSTR = 3 IN_MSGSTR = 4 MSGID = 'msgid "' MSG...
redbot/core/i18n.py <|code_start|>import contextlib import io import os from pathlib import Path from typing import Callable, Union, Dict __all__ = ["get_locale", "set_locale", "reload_locales", "cog_i18n", "Translator"] _current_locale = "en-US" WAITING_FOR_MSGID = 1 IN_MSGID = 2 WAITING_FOR_MSGSTR = 3 IN_MSGSTR = ...
[ModLog] modlog.register_casetypes() fails silently This one is a bit obscure, but I promise there is a good bug here. Lets say you have a cog which registers Case A, install that cog and have it running for an day. And you update the cog with a new case type, (Case B). The ``modlog.register_casetypes()`` will fail sil...
redbot/core/modlog.py <|code_start|>from datetime import datetime from typing import List, Union import discord from redbot.core import Config from redbot.core.bot import Red from .utils.common_filters import ( filter_invites, filter_mass_mentions, filter_urls, escape_spoilers, ) __all__ = [ "Ca...
redbot/core/modlog.py <|code_start|>from datetime import datetime from typing import List, Union import discord from redbot.core import Config from redbot.core.bot import Red from .utils.common_filters import ( filter_invites, filter_mass_mentions, filter_urls, escape_spoilers, ) __all__ = [ "Ca...
[p]set locale does not have a check # Command bugs #### Command name `[p]set locale` #### What cog is this command from? Core #### What were you expecting to happen? `[p]set locale randomtext` would respond saying that locale does not exist #### What actually happened? Any "locale" can be passed...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json 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 asc...
"Failed to install libraries" message outputs a raw list # Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]cog install` #### What cog is this command from? Downloader #### What were you expecting to happen? A nice pretty output from the "Fai...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
humanize_list() throws IndexError on empty lists #### What were you trying to do? Use the *chat formatting* tool `humanize_list()`. #### What were you expecting to happen? To return a string, possibly an empty string. #### What actually happened? It crashed, IndexError: https://i.gyazo.com/4c59a0299ed59...
redbot/core/utils/chat_formatting.py <|code_start|>import itertools import datetime from typing import Sequence, Iterator, List, Optional import discord from redbot.core.i18n import Translator _ = Translator("UtilsChatFormatting", __file__) def error(text: str) -> str: """Get text prefixed with an error emoji....
redbot/core/utils/chat_formatting.py <|code_start|>import itertools import datetime from typing import Sequence, Iterator, List, Optional import discord from redbot.core.i18n import Translator _ = Translator("UtilsChatFormatting", __file__) def error(text: str) -> str: """Get text prefixed with an error emoji....
[Audio] Error in `[p]audioset settings` # Command bugs #### Command name [p]audioset settings #### What cog is this command from? audio #### What were you expecting to happen? Shows the settings of the audio cog #### What actually happened? The command throughs a Traceback: ``` [28/01/2019 21:...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import base64 import datetime import discord from fuzzywuzzy import process import heapq from io import StringIO import json import lavalink import logging import math import os import random import re import time import redbot.core from redbot.core...
redbot/cogs/audio/audio.py <|code_start|>import aiohttp import asyncio import base64 import datetime import discord from fuzzywuzzy import process import heapq from io import StringIO import json import lavalink import logging import math import os import random import re import time import redbot.core from redbot.core...
Cleanup Between addition # Feature request Cleanup between messageID1 messageID2 #### Select the type of feature you are requesting: <!-- To check a box, replace the space between the [] with a x --> - [ ] Cog - [X] Command - [ ] API functionality #### Describe your requested feature Adding onto the...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable, Set import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow...
redbot/cogs/cleanup/cleanup.py <|code_start|>import re from datetime import datetime, timedelta from typing import Union, List, Callable, Set import discord from redbot.core import checks, commands from redbot.core.bot import Red from redbot.core.i18n import Translator, cog_i18n from redbot.core.utils.mod import slow...
[Mod] Unban traceback Unban isn't properly caught when it can't find an user. ```Traceback (most recent call last): File "/red-v3/lib/python3.7/site-packages/discord/ext/commands/core.py", line 79, in wrapped ret = await coro(*args, **kwargs) File "/red-v3/lib/python3.7/site-packages/redbot/cogs/mod/mod.p...
redbot/cogs/mod/kickban.py <|code_start|>import asyncio import contextlib from collections import namedtuple from datetime import datetime, timedelta from typing import cast, Optional, Union import discord from redbot.core import commands, i18n, checks, modlog from redbot.core.utils.chat_formatting import pagify from ...
redbot/cogs/mod/kickban.py <|code_start|>import asyncio import contextlib from collections import namedtuple from datetime import datetime, timedelta from typing import cast, Optional, Union import discord from redbot.core import commands, i18n, checks, modlog from redbot.core.utils.chat_formatting import pagify from ...
[V3/develop] cog uninstall throws exception # Command bugs #### Command name `cog uninstall` #### What cog is this command from? `Downloader` #### What were you expecting to happen? Remove cog from installed list #### What actually happened? When cog is unloaded, exception is raised: ```py [20...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
redbot/cogs/downloader/downloader.py <|code_start|>import asyncio import contextlib import os import shutil import sys from pathlib import Path from sys import path as syspath from typing import Tuple, Union, Iterable import discord from redbot.core import checks, commands, Config from redbot.core.bot import Red from ...
Default locale is `en` not `en-US` # Other bugs #### What were you trying to do? Nothing #### What were you expecting to happen? The default locale to be `en-US` #### What actually happened? The default locale is `en` #### How can we reproduce this issue? Make a new bot, look at the locale Since I added a ...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
redbot/core/bot.py <|code_start|>import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_ment...
Bad grammar in `[p]backup` # Command bugs #### Command name `[p]backup` #### What cog is this command from? Core #### What were you expecting to happen? Proper grammar. #### What actually happened? Improper grammar. #### How can we reproduce this issue? The text `This backup is to large to...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json import logging import os import pathlib import sys import tarfile import traceback from collections import namedtuple from pathlib import Path from random import SystemRandom from st...
redbot/core/core_commands.py <|code_start|>import asyncio import contextlib import datetime import importlib import itertools import json import logging import os import pathlib import sys import tarfile import traceback from collections import namedtuple from pathlib import Path from random import SystemRandom from st...