hc99 commited on
Commit
9ff7378
·
verified ·
1 Parent(s): a89d35f

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. testbed/Cog-Creators__Red-DiscordBot/redbot/__init__.py +376 -0
  2. testbed/Cog-Creators__Red-DiscordBot/redbot/__main__.py +554 -0
  3. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/__init__.py +0 -0
  4. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/__init__.py +9 -0
  5. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/errors.py +162 -0
  6. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/locales/vi-VN.po +76 -0
  7. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/manager.py +702 -0
  8. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/sql_statements.py +646 -0
  9. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/__init__.py +6 -0
  10. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/checks.py +15 -0
  11. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/cleanup.py +759 -0
  12. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/converters.py +32 -0
  13. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ar-SA.po +167 -0
  14. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/da-DK.po +167 -0
  15. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/de-DE.po +167 -0
  16. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/es-ES.po +238 -0
  17. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/fi-FI.po +167 -0
  18. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/fr-FR.po +176 -0
  19. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/hu-HU.po +184 -0
  20. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/id-ID.po +167 -0
  21. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/it-IT.po +167 -0
  22. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ja-JP.po +167 -0
  23. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/nb-NO.po +201 -0
  24. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/nl-NL.po +167 -0
  25. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pl-PL.po +167 -0
  26. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pt-BR.po +167 -0
  27. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pt-PT.po +167 -0
  28. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ru-RU.po +175 -0
  29. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sk-SK.po +167 -0
  30. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sl-SI.po +167 -0
  31. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sv-SE.po +167 -0
  32. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/tr-TR.po +235 -0
  33. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/uk-UA.po +167 -0
  34. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/vi-VN.po +167 -0
  35. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-CN.po +167 -0
  36. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-HK.po +167 -0
  37. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-TW.po +167 -0
  38. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/__init__.py +7 -0
  39. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/customcom.py +880 -0
  40. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/af-ZA.po +296 -0
  41. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/ar-SA.po +304 -0
  42. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/bg-BG.po +296 -0
  43. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/bs-BA.po +296 -0
  44. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/ca-ES.po +296 -0
  45. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/cs-CZ.po +297 -0
  46. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/da-DK.po +297 -0
  47. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/de-DE.po +308 -0
  48. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/el-GR.po +296 -0
  49. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/en-PT.po +193 -0
  50. testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/en-US.po +192 -0
testbed/Cog-Creators__Red-DiscordBot/redbot/__init__.py ADDED
@@ -0,0 +1,376 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os as _os
2
+ import re as _re
3
+ import sys as _sys
4
+ import warnings as _warnings
5
+ from math import inf as _inf
6
+ from typing import (
7
+ ClassVar as _ClassVar,
8
+ Dict as _Dict,
9
+ List as _List,
10
+ Optional as _Optional,
11
+ Pattern as _Pattern,
12
+ Tuple as _Tuple,
13
+ Union as _Union,
14
+ )
15
+
16
+
17
+ MIN_PYTHON_VERSION = (3, 8, 1)
18
+
19
+ __all__ = [
20
+ "MIN_PYTHON_VERSION",
21
+ "__version__",
22
+ "version_info",
23
+ "VersionInfo",
24
+ "_update_event_loop_policy",
25
+ ]
26
+ if _sys.version_info < MIN_PYTHON_VERSION:
27
+ print(
28
+ f"Python {'.'.join(map(str, MIN_PYTHON_VERSION))} is required to run Red, but you have "
29
+ f"{_sys.version}! Please update Python."
30
+ )
31
+ _sys.exit(78)
32
+
33
+
34
+ class VersionInfo:
35
+ ALPHA = "alpha"
36
+ BETA = "beta"
37
+ RELEASE_CANDIDATE = "release candidate"
38
+ FINAL = "final"
39
+
40
+ _VERSION_STR_PATTERN: _ClassVar[_Pattern[str]] = _re.compile(
41
+ r"^"
42
+ r"(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<micro>0|[1-9]\d*)"
43
+ r"(?:(?P<releaselevel>a|b|rc)(?P<serial>0|[1-9]\d*))?"
44
+ r"(?:\.post(?P<post_release>0|[1-9]\d*))?"
45
+ r"(?:\.dev(?P<dev_release>0|[1-9]\d*))?"
46
+ r"(?:\+(?P<local_version>g[a-z0-9]+(?:\.dirty)?))?"
47
+ r"$",
48
+ flags=_re.IGNORECASE,
49
+ )
50
+ _RELEASE_LEVELS: _ClassVar[_List[str]] = [ALPHA, BETA, RELEASE_CANDIDATE, FINAL]
51
+ _SHORT_RELEASE_LEVELS: _ClassVar[_Dict[str, str]] = {
52
+ "a": ALPHA,
53
+ "b": BETA,
54
+ "rc": RELEASE_CANDIDATE,
55
+ }
56
+
57
+ def __init__(
58
+ self,
59
+ major: int,
60
+ minor: int,
61
+ micro: int,
62
+ releaselevel: str,
63
+ serial: _Optional[int] = None,
64
+ post_release: _Optional[int] = None,
65
+ dev_release: _Optional[int] = None,
66
+ local_version: _Optional[str] = None,
67
+ ) -> None:
68
+ self.major: int = major
69
+ self.minor: int = minor
70
+ self.micro: int = micro
71
+
72
+ if releaselevel not in self._RELEASE_LEVELS:
73
+ raise TypeError(f"'releaselevel' must be one of: {', '.join(self._RELEASE_LEVELS)}")
74
+
75
+ self.releaselevel: str = releaselevel
76
+ self.serial: _Optional[int] = serial
77
+ self.post_release: _Optional[int] = post_release
78
+ self.dev_release: _Optional[int] = dev_release
79
+ self.local_version: _Optional[str] = local_version
80
+
81
+ @property
82
+ def short_commit_hash(self) -> _Optional[str]:
83
+ if self.local_version is None:
84
+ return None
85
+ return self.local_version[1:].split(".", 1)[0]
86
+
87
+ @property
88
+ def dirty(self) -> bool:
89
+ return self.local_version is not None and self.local_version.endswith(".dirty")
90
+
91
+ @classmethod
92
+ def from_str(cls, version_str: str) -> "VersionInfo":
93
+ """Parse a string into a VersionInfo object.
94
+
95
+ Raises
96
+ ------
97
+ ValueError
98
+ If the version info string is invalid.
99
+
100
+ """
101
+ match = cls._VERSION_STR_PATTERN.match(version_str)
102
+ if not match:
103
+ raise ValueError(f"Invalid version string: {version_str}")
104
+
105
+ kwargs: _Dict[str, _Union[str, int]] = {}
106
+ for key in ("major", "minor", "micro"):
107
+ kwargs[key] = int(match[key])
108
+ releaselevel = match["releaselevel"]
109
+ if releaselevel is not None:
110
+ kwargs["releaselevel"] = cls._SHORT_RELEASE_LEVELS[releaselevel]
111
+ else:
112
+ kwargs["releaselevel"] = cls.FINAL
113
+ for key in ("serial", "post_release", "dev_release"):
114
+ if match[key] is not None:
115
+ kwargs[key] = int(match[key])
116
+ kwargs["local_version"] = match["local_version"]
117
+ return cls(**kwargs)
118
+
119
+ @classmethod
120
+ def from_json(
121
+ cls, data: _Union[_Dict[str, _Union[int, str]], _List[_Union[int, str]]]
122
+ ) -> "VersionInfo":
123
+ if isinstance(data, _List):
124
+ # For old versions, data was stored as a list:
125
+ # [MAJOR, MINOR, MICRO, RELEASELEVEL, SERIAL]
126
+ return cls(*data)
127
+ else:
128
+ return cls(**data)
129
+
130
+ def to_json(self) -> _Dict[str, _Union[int, str]]:
131
+ return {
132
+ "major": self.major,
133
+ "minor": self.minor,
134
+ "micro": self.micro,
135
+ "releaselevel": self.releaselevel,
136
+ "serial": self.serial,
137
+ "post_release": self.post_release,
138
+ "dev_release": self.dev_release,
139
+ "local_version": self.local_version,
140
+ }
141
+
142
+ def _generate_comparison_tuples(
143
+ self, other: "VersionInfo"
144
+ ) -> _List[
145
+ _Tuple[int, int, int, int, _Union[int, float], _Union[int, float], _Union[int, float], int]
146
+ ]:
147
+ tups: _List[
148
+ _Tuple[
149
+ int, int, int, int, _Union[int, float], _Union[int, float], _Union[int, float], int
150
+ ]
151
+ ] = []
152
+ for obj in (self, other):
153
+ if (
154
+ obj.releaselevel == obj.FINAL
155
+ and obj.post_release is None
156
+ and obj.dev_release is not None
157
+ ):
158
+ releaselevel = -1
159
+ else:
160
+ releaselevel = obj._RELEASE_LEVELS.index(obj.releaselevel)
161
+ tups.append(
162
+ (
163
+ obj.major,
164
+ obj.minor,
165
+ obj.micro,
166
+ releaselevel,
167
+ obj.serial if obj.serial is not None else _inf,
168
+ obj.post_release if obj.post_release is not None else -_inf,
169
+ obj.dev_release if obj.dev_release is not None else _inf,
170
+ int(obj.dirty),
171
+ )
172
+ )
173
+ return tups
174
+
175
+ def __lt__(self, other: "VersionInfo") -> bool:
176
+ tups = self._generate_comparison_tuples(other)
177
+ return tups[0] < tups[1]
178
+
179
+ def __eq__(self, other: "VersionInfo") -> bool:
180
+ tups = self._generate_comparison_tuples(other)
181
+ return tups[0] == tups[1]
182
+
183
+ def __le__(self, other: "VersionInfo") -> bool:
184
+ tups = self._generate_comparison_tuples(other)
185
+ return tups[0] <= tups[1]
186
+
187
+ def __str__(self) -> str:
188
+ ret = f"{self.major}.{self.minor}.{self.micro}"
189
+ if self.releaselevel != self.FINAL:
190
+ short = next(
191
+ k for k, v in self._SHORT_RELEASE_LEVELS.items() if v == self.releaselevel
192
+ )
193
+ ret += f"{short}{self.serial}"
194
+ if self.post_release is not None:
195
+ ret += f".post{self.post_release}"
196
+ if self.dev_release is not None:
197
+ ret += f".dev{self.dev_release}"
198
+ if self.local_version is not None:
199
+ ret += f"+{self.local_version}"
200
+ return ret
201
+
202
+ def __repr__(self) -> str:
203
+ return (
204
+ "VersionInfo(major={major}, minor={minor}, micro={micro}, "
205
+ "releaselevel={releaselevel}, serial={serial}, post={post_release}, "
206
+ "dev={dev_release}, local={local_version})"
207
+ ).format(**self.to_json())
208
+
209
+ @classmethod
210
+ def _get_version(cls, *, ignore_installed: bool = False) -> _Tuple[str, "VersionInfo"]:
211
+ if not _VERSION.endswith(".dev1"):
212
+ return _VERSION, cls.from_str(_VERSION)
213
+
214
+ project_root = _os.path.abspath(_os.path.dirname(_os.path.dirname(__file__)))
215
+
216
+ methods = [
217
+ cls._get_version_from_git_repo,
218
+ ]
219
+ # `ignore_installed` is `True` when building with setuptools.
220
+ if ignore_installed:
221
+ methods.append(cls._get_version_from_sdist_pkg_info)
222
+ methods.append(cls._get_version_from_git_archive)
223
+ else:
224
+ methods.append(cls._get_version_from_package_metadata)
225
+ exceptions = []
226
+ for method in methods:
227
+ try:
228
+ version = method(project_root)
229
+ except Exception as exc:
230
+ exceptions.append(exc)
231
+ else:
232
+ break
233
+ else:
234
+ import traceback
235
+
236
+ for exc in exceptions:
237
+ traceback.print_exception(None, exc, exc.__traceback__)
238
+ exc.__traceback__ = None
239
+
240
+ version = _VERSION
241
+
242
+ return version, cls.from_str(version)
243
+
244
+ @classmethod
245
+ def _get_version_from_git_repo(cls, project_root: str) -> str:
246
+ # we only want to do this for editable installs
247
+ if not _os.path.exists(_os.path.join(project_root, ".git")):
248
+ raise RuntimeError("not a git repository")
249
+
250
+ import subprocess
251
+
252
+ output = subprocess.check_output(
253
+ ("git", "describe", "--tags", "--long", "--dirty"),
254
+ stderr=subprocess.DEVNULL,
255
+ cwd=project_root,
256
+ )
257
+ _, count, commit, *dirty = output.decode("utf-8").strip().split("-", 3)
258
+ dirty_suffix = f".{dirty[0]}" if dirty else ""
259
+ return f"{_VERSION[:-1]}{count}+{commit}{dirty_suffix}"
260
+
261
+ @classmethod
262
+ def _get_version_from_git_archive(cls, project_root: str) -> str:
263
+ with open(_os.path.join(project_root, ".git_archive_info.txt"), encoding="utf-8") as fp:
264
+ commit, describe_name = fp.read().splitlines()
265
+ if not describe_name:
266
+ raise RuntimeError("git archive's describe didn't output anything")
267
+ if "%(describe" in describe_name:
268
+ # either git-archive was generated with Git < 2.35 or this is not a git-archive
269
+ raise RuntimeError("git archive did not support describe output")
270
+ _, _, suffix = describe_name.partition("-")
271
+ if suffix:
272
+ count, _, _ = suffix.partition("-")
273
+ else:
274
+ count = "0"
275
+ return f"{_VERSION[:-1]}{count}+g{commit}"
276
+
277
+ @classmethod
278
+ def _get_version_from_sdist_pkg_info(cls, project_root: str) -> str:
279
+ pkg_info_path = _os.path.join(project_root, "PKG-INFO")
280
+ if not _os.path.exists(pkg_info_path):
281
+ raise RuntimeError("not an sdist")
282
+
283
+ import email
284
+
285
+ with open(pkg_info_path, encoding="utf-8") as fp:
286
+ return email.message_from_file(fp)["Version"]
287
+
288
+ @classmethod
289
+ def _get_version_from_package_metadata(cls, project_root: str) -> str:
290
+ from importlib.metadata import version
291
+
292
+ return version("Red-DiscordBot")
293
+
294
+
295
+ def _update_event_loop_policy():
296
+ if _sys.implementation.name == "cpython":
297
+ # Let's not force this dependency, uvloop is much faster on cpython
298
+ try:
299
+ import uvloop
300
+ except ImportError:
301
+ pass
302
+ else:
303
+ import asyncio
304
+
305
+ asyncio.set_event_loop_policy(uvloop.EventLoopPolicy())
306
+
307
+
308
+ def _ensure_no_colorama():
309
+ # a hacky way to ensure that nothing initialises colorama
310
+ # if we're not running with legacy Windows command line mode
311
+ from rich.console import detect_legacy_windows
312
+
313
+ if not detect_legacy_windows():
314
+ try:
315
+ import colorama
316
+ import colorama.initialise
317
+ except ModuleNotFoundError:
318
+ # colorama is not Red's primary dependency so it might not be present
319
+ return
320
+
321
+ colorama.deinit()
322
+
323
+ def _colorama_wrap_stream(stream, *args, **kwargs):
324
+ return stream
325
+
326
+ colorama.wrap_stream = _colorama_wrap_stream
327
+ colorama.initialise.wrap_stream = _colorama_wrap_stream
328
+
329
+
330
+ def _update_logger_class():
331
+ from red_commons.logging import maybe_update_logger_class
332
+
333
+ maybe_update_logger_class()
334
+
335
+
336
+ def _early_init():
337
+ # This function replaces logger so we preferably (though not necessarily) want that to happen
338
+ # before importing anything that calls `logging.getLogger()`, i.e. `asyncio`.
339
+ _update_logger_class()
340
+ _update_event_loop_policy()
341
+ _ensure_no_colorama()
342
+
343
+
344
+ # This is bumped automatically by release workflow (`.github/workflows/scripts/bump_version.py`)
345
+ _VERSION = "3.5.0.dev1"
346
+
347
+ __version__, version_info = VersionInfo._get_version()
348
+
349
+ # Show DeprecationWarning
350
+ _warnings.filterwarnings("default", category=DeprecationWarning)
351
+
352
+ # TODO: Rearrange cli flags here and use the value instead of this monkeypatch
353
+ if not any(_re.match("^-(-debug|d+|-verbose|v+)$", i) for i in _sys.argv):
354
+ # DEP-WARN
355
+ # Individual warnings - tracked in https://github.com/Cog-Creators/Red-DiscordBot/issues/3529
356
+ # DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
357
+ _warnings.filterwarnings("ignore", category=DeprecationWarning, module="importlib", lineno=219)
358
+ # DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10
359
+ # stdin, stdout, stderr = await tasks.gather(stdin, stdout, stderr,
360
+ # this is a bug in CPython
361
+ _warnings.filterwarnings(
362
+ "ignore",
363
+ category=DeprecationWarning,
364
+ module="asyncio",
365
+ message="The loop argument is deprecated since Python 3.8",
366
+ )
367
+ # DEP-WARN - d.py currently uses audioop module, Danny is aware of the deprecation
368
+ #
369
+ # DeprecationWarning: 'audioop' is deprecated and slated for removal in Python 3.13
370
+ # import audioop
371
+ _warnings.filterwarnings(
372
+ "ignore",
373
+ category=DeprecationWarning,
374
+ module="discord",
375
+ message="'audioop' is deprecated and slated for removal",
376
+ )
testbed/Cog-Creators__Red-DiscordBot/redbot/__main__.py ADDED
@@ -0,0 +1,554 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from redbot import _early_init
2
+
3
+ # this needs to be called as early as possible
4
+ _early_init()
5
+
6
+ import asyncio
7
+ import functools
8
+ import getpass
9
+ import json
10
+ import logging
11
+ import os
12
+ import pip
13
+ import platform
14
+ import shutil
15
+ import signal
16
+ import sys
17
+ from argparse import Namespace
18
+ from copy import deepcopy
19
+ from pathlib import Path
20
+ from typing import Any, Awaitable, Callable, NoReturn, Union
21
+
22
+ import discord
23
+ import rich
24
+
25
+ import redbot.logging
26
+ from redbot import __version__
27
+ from redbot.core.bot import Red, ExitCodes, _NoOwnerSet
28
+ from redbot.core.cli import interactive_config, confirm, parse_cli_flags
29
+ from redbot.setup import get_data_dir, get_name, save_config
30
+ from redbot.core import data_manager, drivers
31
+ from redbot.core._debuginfo import DebugInfo
32
+ from redbot.core._sharedlibdeprecation import SharedLibImportWarner
33
+
34
+
35
+ log = logging.getLogger("red.main")
36
+
37
+ #
38
+ # Red - Discord Bot v3
39
+ #
40
+ # Made by Twentysix, improved by many
41
+ #
42
+
43
+
44
+ def _get_instance_names():
45
+ with data_manager.config_file.open(encoding="utf-8") as fs:
46
+ data = json.load(fs)
47
+ return sorted(data.keys())
48
+
49
+
50
+ def list_instances():
51
+ if not data_manager.config_file.exists():
52
+ print(
53
+ "No instances have been configured! Configure one "
54
+ "using `redbot-setup` before trying to run the bot!"
55
+ )
56
+ sys.exit(ExitCodes.CONFIGURATION_ERROR)
57
+ else:
58
+ text = "Configured Instances:\n\n"
59
+ for instance_name in _get_instance_names():
60
+ text += "{}\n".format(instance_name)
61
+ print(text)
62
+ sys.exit(ExitCodes.SHUTDOWN)
63
+
64
+
65
+ async def debug_info(*args: Any) -> None:
66
+ """Shows debug information useful for debugging."""
67
+ print(await DebugInfo().get_text())
68
+
69
+
70
+ async def edit_instance(red, cli_flags):
71
+ no_prompt = cli_flags.no_prompt
72
+ token = cli_flags.token
73
+ owner = cli_flags.owner
74
+ prefix = cli_flags.prefix
75
+ old_name = cli_flags.instance_name
76
+ new_name = cli_flags.edit_instance_name
77
+ data_path = cli_flags.edit_data_path
78
+ copy_data = cli_flags.copy_data
79
+ confirm_overwrite = cli_flags.overwrite_existing_instance
80
+
81
+ if data_path is None and copy_data:
82
+ print("--copy-data can't be used without --edit-data-path argument")
83
+ sys.exit(ExitCodes.INVALID_CLI_USAGE)
84
+ if new_name is None and confirm_overwrite:
85
+ print("--overwrite-existing-instance can't be used without --edit-instance-name argument")
86
+ sys.exit(ExitCodes.INVALID_CLI_USAGE)
87
+ if (
88
+ no_prompt
89
+ and all(to_change is None for to_change in (token, owner, new_name, data_path))
90
+ and not prefix
91
+ ):
92
+ print(
93
+ "No arguments to edit were provided."
94
+ " Available arguments (check help for more information):"
95
+ " --edit-instance-name, --edit-data-path, --copy-data, --owner, --token, --prefix"
96
+ )
97
+ sys.exit(ExitCodes.INVALID_CLI_USAGE)
98
+
99
+ await _edit_token(red, token, no_prompt)
100
+ await _edit_prefix(red, prefix, no_prompt)
101
+ await _edit_owner(red, owner, no_prompt)
102
+
103
+ data = deepcopy(data_manager.basic_config)
104
+ name = _edit_instance_name(old_name, new_name, confirm_overwrite, no_prompt)
105
+ _edit_data_path(data, name, data_path, copy_data, no_prompt)
106
+
107
+ save_config(name, data)
108
+ if old_name != name:
109
+ save_config(old_name, {}, remove=True)
110
+
111
+
112
+ async def _edit_token(red, token, no_prompt):
113
+ if token:
114
+ if not len(token) >= 50:
115
+ print(
116
+ "The provided token doesn't look a valid Discord bot token."
117
+ " Instance's token will remain unchanged.\n"
118
+ )
119
+ return
120
+ await red._config.token.set(token)
121
+ elif not no_prompt and confirm("Would you like to change instance's token?", default=False):
122
+ await interactive_config(red, False, True, print_header=False)
123
+ print("Token updated.\n")
124
+
125
+
126
+ async def _edit_prefix(red, prefix, no_prompt):
127
+ if prefix:
128
+ prefixes = sorted(prefix, reverse=True)
129
+ await red._config.prefix.set(prefixes)
130
+ elif not no_prompt and confirm("Would you like to change instance's prefixes?", default=False):
131
+ print(
132
+ "Enter the prefixes, separated by a space (please note "
133
+ "that prefixes containing a space will need to be added with [p]set prefix)"
134
+ )
135
+ while True:
136
+ prefixes = input("> ").strip().split()
137
+ if not prefixes:
138
+ print("You need to pass at least one prefix!")
139
+ continue
140
+ if any(prefix.startswith("/") for prefix in prefixes):
141
+ print(
142
+ "Prefixes cannot start with '/', as it conflicts with Discord's slash commands."
143
+ )
144
+ continue
145
+ prefixes = sorted(prefixes, reverse=True)
146
+ await red._config.prefix.set(prefixes)
147
+ print("Prefixes updated.\n")
148
+ break
149
+
150
+
151
+ async def _edit_owner(red, owner, no_prompt):
152
+ if owner:
153
+ if not (15 <= len(str(owner)) <= 20):
154
+ print(
155
+ "The provided owner id doesn't look like a valid Discord user id."
156
+ " Instance's owner will remain unchanged."
157
+ )
158
+ return
159
+ await red._config.owner.set(owner)
160
+ elif not no_prompt and confirm("Would you like to change instance's owner?", default=False):
161
+ print(
162
+ "Remember:\n"
163
+ "ONLY the person who is hosting Red should be owner."
164
+ " This has SERIOUS security implications."
165
+ " The owner can access any data that is present on the host system.\n"
166
+ )
167
+ if confirm("Are you sure you want to change instance's owner?", default=False):
168
+ print("Please enter a Discord user id for new owner:")
169
+ while True:
170
+ owner_id = input("> ").strip()
171
+ if not (15 <= len(owner_id) <= 20 and owner_id.isdecimal()):
172
+ print("That doesn't look like a valid Discord user id.")
173
+ continue
174
+ owner_id = int(owner_id)
175
+ await red._config.owner.set(owner_id)
176
+ print("Owner updated.")
177
+ break
178
+ else:
179
+ print("Instance's owner will remain unchanged.")
180
+ print()
181
+
182
+
183
+ def _edit_instance_name(old_name, new_name, confirm_overwrite, no_prompt):
184
+ if new_name:
185
+ name = new_name
186
+ if name in _get_instance_names() and not confirm_overwrite:
187
+ name = old_name
188
+ print(
189
+ "An instance with this name already exists.\n"
190
+ "If you want to remove the existing instance and replace it with this one,"
191
+ " run this command with --overwrite-existing-instance flag."
192
+ )
193
+ elif not no_prompt and confirm("Would you like to change the instance name?", default=False):
194
+ name = get_name("")
195
+ if name in _get_instance_names():
196
+ print(
197
+ "WARNING: An instance already exists with this name. "
198
+ "Continuing will overwrite the existing instance config."
199
+ )
200
+ if not confirm(
201
+ "Are you absolutely certain you want to continue with this instance name?",
202
+ default=False,
203
+ ):
204
+ print("Instance name will remain unchanged.")
205
+ name = old_name
206
+ else:
207
+ print("Instance name updated.")
208
+ else:
209
+ print("Instance name updated.")
210
+ print()
211
+ else:
212
+ name = old_name
213
+ return name
214
+
215
+
216
+ def _edit_data_path(data, instance_name, data_path, copy_data, no_prompt):
217
+ # This modifies the passed dict.
218
+ if data_path:
219
+ new_path = Path(data_path)
220
+ try:
221
+ exists = new_path.exists()
222
+ except OSError:
223
+ print(
224
+ "We were unable to check your chosen directory."
225
+ " Provided path may contain an invalid character."
226
+ " Data location will remain unchanged."
227
+ )
228
+
229
+ if not exists:
230
+ try:
231
+ new_path.mkdir(parents=True, exist_ok=True)
232
+ except OSError:
233
+ print(
234
+ "We were unable to create your chosen directory."
235
+ " Data location will remain unchanged."
236
+ )
237
+ data["DATA_PATH"] = data_path
238
+ if copy_data and not _copy_data(data):
239
+ print("Can't copy data to non-empty location. Data location will remain unchanged.")
240
+ data["DATA_PATH"] = data_manager.basic_config["DATA_PATH"]
241
+ elif not no_prompt and confirm("Would you like to change the data location?", default=False):
242
+ data["DATA_PATH"] = get_data_dir(
243
+ instance_name=instance_name, data_path=None, interactive=True
244
+ )
245
+ if confirm("Do you want to copy the data from old location?", default=True):
246
+ if not _copy_data(data):
247
+ print("Can't copy the data to non-empty location.")
248
+ if not confirm("Do you still want to use the new data location?"):
249
+ data["DATA_PATH"] = data_manager.basic_config["DATA_PATH"]
250
+ print("Data location will remain unchanged.")
251
+ return
252
+ print("Old data has been copied over to the new location.")
253
+ print("Data location updated.")
254
+
255
+
256
+ def _copy_data(data):
257
+ if Path(data["DATA_PATH"]).exists():
258
+ if any(os.scandir(data["DATA_PATH"])):
259
+ return False
260
+ else:
261
+ # this is needed because copytree doesn't work when destination folder exists
262
+ # Python 3.8 has `dirs_exist_ok` option for that
263
+ os.rmdir(data["DATA_PATH"])
264
+ shutil.copytree(data_manager.basic_config["DATA_PATH"], data["DATA_PATH"])
265
+ return True
266
+
267
+
268
+ def early_exit_runner(
269
+ cli_flags: Namespace,
270
+ func: Union[Callable[[], Awaitable[Any]], Callable[[Red, Namespace], Awaitable[Any]]],
271
+ ) -> None:
272
+ """
273
+ This one exists to not log all the things like it's a full run of the bot.
274
+ """
275
+ loop = asyncio.new_event_loop()
276
+ asyncio.set_event_loop(loop)
277
+ try:
278
+ if not cli_flags.instance_name:
279
+ loop.run_until_complete(func())
280
+ return
281
+
282
+ data_manager.load_basic_configuration(cli_flags.instance_name)
283
+ red = Red(cli_flags=cli_flags, description="Red V3", dm_help=None)
284
+ driver_cls = drivers.get_driver_class()
285
+ loop.run_until_complete(driver_cls.initialize(**data_manager.storage_details()))
286
+ loop.run_until_complete(func(red, cli_flags))
287
+ loop.run_until_complete(driver_cls.teardown())
288
+ except (KeyboardInterrupt, EOFError):
289
+ print("Aborted!")
290
+ finally:
291
+ loop.run_until_complete(asyncio.sleep(1))
292
+ asyncio.set_event_loop(None)
293
+ loop.stop()
294
+ loop.close()
295
+
296
+
297
+ async def run_bot(red: Red, cli_flags: Namespace) -> None:
298
+ """
299
+ This runs the bot.
300
+
301
+ Any shutdown which is a result of not being able to log in needs to raise
302
+ a SystemExit exception.
303
+
304
+ If the bot starts normally, the bot should be left to handle the exit case.
305
+ It will raise SystemExit in a task, which will reach the event loop and
306
+ interrupt running forever, then trigger our cleanup process, and does not
307
+ need additional handling in this function.
308
+ """
309
+
310
+ driver_cls = drivers.get_driver_class()
311
+
312
+ await driver_cls.initialize(**data_manager.storage_details())
313
+
314
+ redbot.logging.init_logging(
315
+ level=cli_flags.logging_level,
316
+ location=data_manager.core_data_path() / "logs",
317
+ cli_flags=cli_flags,
318
+ )
319
+
320
+ log.debug("====Basic Config====")
321
+ log.debug("Data Path: %s", data_manager._base_data_path())
322
+ log.debug("Storage Type: %s", data_manager.storage_type())
323
+
324
+ # lib folder has to be in sys.path before trying to load any 3rd-party cog (GH-3061)
325
+ # We might want to change handling of requirements in Downloader at later date
326
+ LIB_PATH = data_manager.cog_data_path(raw_name="Downloader") / "lib"
327
+ LIB_PATH.mkdir(parents=True, exist_ok=True)
328
+ if str(LIB_PATH) not in sys.path:
329
+ sys.path.append(str(LIB_PATH))
330
+
331
+ # "It's important to note that the global `working_set` object is initialized from
332
+ # `sys.path` when `pkg_resources` is first imported, but is only updated if you do
333
+ # all future `sys.path` manipulation via `pkg_resources` APIs. If you manually modify
334
+ # `sys.path`, you must invoke the appropriate methods on the `working_set` instance
335
+ # to keep it in sync."
336
+ # Source: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#workingset-objects
337
+ pkg_resources = sys.modules.get("pkg_resources")
338
+ if pkg_resources is not None:
339
+ pkg_resources.working_set.add_entry(str(LIB_PATH))
340
+ sys.meta_path.insert(0, SharedLibImportWarner())
341
+
342
+ if cli_flags.token:
343
+ token = cli_flags.token
344
+ else:
345
+ token = os.environ.get("RED_TOKEN", None)
346
+ if not token:
347
+ token = await red._config.token()
348
+
349
+ prefix = cli_flags.prefix or await red._config.prefix()
350
+
351
+ if not (token and prefix):
352
+ if cli_flags.no_prompt is False:
353
+ new_token = await interactive_config(
354
+ red, token_set=bool(token), prefix_set=bool(prefix)
355
+ )
356
+ if new_token:
357
+ token = new_token
358
+ else:
359
+ log.critical("Token and prefix must be set in order to login.")
360
+ sys.exit(ExitCodes.CONFIGURATION_ERROR)
361
+
362
+ if cli_flags.dry_run:
363
+ sys.exit(ExitCodes.SHUTDOWN)
364
+ try:
365
+ # `async with red:` is unnecessary here because we call red.close() in shutdown handler
366
+ await red.start(token)
367
+ except discord.LoginFailure:
368
+ log.critical("This token doesn't seem to be valid.")
369
+ db_token = await red._config.token()
370
+ if db_token and not cli_flags.no_prompt:
371
+ if confirm("\nDo you want to reset the token?"):
372
+ await red._config.token.set("")
373
+ print("Token has been reset.")
374
+ sys.exit(ExitCodes.SHUTDOWN)
375
+ sys.exit(ExitCodes.CONFIGURATION_ERROR)
376
+ except discord.PrivilegedIntentsRequired:
377
+ console = rich.get_console()
378
+ console.print(
379
+ "Red requires all Privileged Intents to be enabled.\n"
380
+ "You can find out how to enable Privileged Intents with this guide:\n"
381
+ "https://docs.discord.red/en/stable/bot_application_guide.html#enabling-privileged-intents",
382
+ style="red",
383
+ )
384
+ sys.exit(ExitCodes.CONFIGURATION_ERROR)
385
+ except _NoOwnerSet:
386
+ print(
387
+ "Bot doesn't have any owner set!\n"
388
+ "This can happen when your bot's application is owned by team"
389
+ " as team members are NOT owners by default.\n\n"
390
+ "Remember:\n"
391
+ "ONLY the person who is hosting Red should be owner."
392
+ " This has SERIOUS security implications."
393
+ " The owner can access any data that is present on the host system.\n"
394
+ "With that out of the way, depending on who you want to be considered as owner,"
395
+ " you can:\n"
396
+ "a) pass --team-members-are-owners when launching Red"
397
+ " - in this case Red will treat all members of the bot application's team as owners\n"
398
+ f"b) set owner manually with `redbot --edit {cli_flags.instance_name}`\n"
399
+ "c) pass owner ID(s) when launching Red with --owner"
400
+ " (and --co-owner if you need more than one) flag\n"
401
+ )
402
+ sys.exit(ExitCodes.CONFIGURATION_ERROR)
403
+
404
+ return None
405
+
406
+
407
+ def handle_early_exit_flags(cli_flags: Namespace):
408
+ if cli_flags.list_instances:
409
+ list_instances()
410
+ elif cli_flags.version:
411
+ print("Red V3")
412
+ print("Current Version: {}".format(__version__))
413
+ sys.exit(ExitCodes.SHUTDOWN)
414
+ elif cli_flags.debuginfo:
415
+ early_exit_runner(cli_flags, debug_info)
416
+ elif not cli_flags.instance_name and (not cli_flags.no_instance or cli_flags.edit):
417
+ print("Error: No instance name was provided!")
418
+ sys.exit(ExitCodes.INVALID_CLI_USAGE)
419
+
420
+
421
+ async def shutdown_handler(red, signal_type=None, exit_code=None):
422
+ if signal_type:
423
+ log.info("%s received. Quitting...", signal_type)
424
+ # Do not collapse the below line into other logic
425
+ # We need to renter this function
426
+ # after it interrupts the event loop.
427
+ sys.exit(ExitCodes.SHUTDOWN)
428
+ elif exit_code is None:
429
+ log.info("Shutting down from unhandled exception")
430
+ red._shutdown_mode = ExitCodes.CRITICAL
431
+
432
+ if exit_code is not None:
433
+ red._shutdown_mode = exit_code
434
+
435
+ try:
436
+ if not red.is_closed():
437
+ await red.close()
438
+ finally:
439
+ # Then cancels all outstanding tasks other than ourselves
440
+ pending = [t for t in asyncio.all_tasks() if t is not asyncio.current_task()]
441
+ [task.cancel() for task in pending]
442
+ await asyncio.gather(*pending, return_exceptions=True)
443
+
444
+
445
+ def global_exception_handler(red, loop, context):
446
+ """
447
+ Logs unhandled exceptions in other tasks
448
+ """
449
+ exc = context.get("exception")
450
+ # These will get handled later when it *also* kills loop.run_forever
451
+ if exc is not None and isinstance(exc, (KeyboardInterrupt, SystemExit)):
452
+ return
453
+ loop.default_exception_handler(context)
454
+
455
+
456
+ def red_exception_handler(red, red_task: asyncio.Future):
457
+ """
458
+ This is set as a done callback for Red
459
+
460
+ must be used with functools.partial
461
+
462
+ If the main bot.run dies for some reason,
463
+ we don't want to swallow the exception and hang.
464
+ """
465
+ try:
466
+ red_task.result()
467
+ except (SystemExit, KeyboardInterrupt, asyncio.CancelledError):
468
+ pass # Handled by the global_exception_handler, or cancellation
469
+ except Exception as exc:
470
+ log.critical("The main bot task didn't handle an exception and has crashed", exc_info=exc)
471
+ log.warning("Attempting to die as gracefully as possible...")
472
+ asyncio.create_task(shutdown_handler(red))
473
+
474
+
475
+ def main():
476
+ red = None # Error handling for users misusing the bot
477
+ cli_flags = parse_cli_flags(sys.argv[1:])
478
+ handle_early_exit_flags(cli_flags)
479
+ if cli_flags.edit:
480
+ early_exit_runner(cli_flags, edit_instance)
481
+ return
482
+ try:
483
+ loop = asyncio.new_event_loop()
484
+ asyncio.set_event_loop(loop)
485
+
486
+ if cli_flags.no_instance:
487
+ print(
488
+ "\033[1m"
489
+ "Warning: The data will be placed in a temporary folder and removed on next system "
490
+ "reboot."
491
+ "\033[0m"
492
+ )
493
+ cli_flags.instance_name = "temporary_red"
494
+ data_manager.create_temp_config()
495
+
496
+ data_manager.load_basic_configuration(cli_flags.instance_name)
497
+
498
+ red = Red(cli_flags=cli_flags, description="Red V3", dm_help=None)
499
+
500
+ if os.name != "nt":
501
+ # None of this works on windows.
502
+ # At least it's not a redundant handler...
503
+ signals = (signal.SIGHUP, signal.SIGTERM, signal.SIGINT)
504
+ for s in signals:
505
+ loop.add_signal_handler(
506
+ s, lambda s=s: asyncio.create_task(shutdown_handler(red, s))
507
+ )
508
+
509
+ exc_handler = functools.partial(global_exception_handler, red)
510
+ loop.set_exception_handler(exc_handler)
511
+ # We actually can't (just) use asyncio.run here
512
+ # We probably could if we didn't support windows, but we might run into
513
+ # a scenario where this isn't true if anyone works on RPC more in the future
514
+ fut = loop.create_task(run_bot(red, cli_flags))
515
+ r_exc_handler = functools.partial(red_exception_handler, red)
516
+ fut.add_done_callback(r_exc_handler)
517
+ loop.run_forever()
518
+ except KeyboardInterrupt:
519
+ # We still have to catch this here too. (*joy*)
520
+ log.warning("Please do not use Ctrl+C to Shutdown Red! (attempting to die gracefully...)")
521
+ log.error("Received KeyboardInterrupt, treating as interrupt")
522
+ if red is not None:
523
+ loop.run_until_complete(shutdown_handler(red, signal.SIGINT))
524
+ except SystemExit as exc:
525
+ # We also have to catch this one here. Basically any exception which normally
526
+ # Kills the python interpreter (Base Exceptions minus asyncio.cancelled)
527
+ # We need to do something with prior to having the loop close
528
+ log.info("Shutting down with exit code: %s", exc.code)
529
+ if red is not None:
530
+ loop.run_until_complete(shutdown_handler(red, None, exc.code))
531
+ except Exception as exc: # Non standard case.
532
+ log.exception("Unexpected exception (%s): ", type(exc), exc_info=exc)
533
+ if red is not None:
534
+ loop.run_until_complete(shutdown_handler(red, None, ExitCodes.CRITICAL))
535
+ finally:
536
+ # Allows transports to close properly, and prevent new ones from being opened.
537
+ # Transports may still not be closed correctly on windows, see below
538
+ loop.run_until_complete(loop.shutdown_asyncgens())
539
+ # *we* aren't cleaning up more here, but it prevents
540
+ # a runtime error at the event loop on windows
541
+ # with resources which require longer to clean up.
542
+ # With other event loops, a failure to cleanup prior to here
543
+ # results in a resource warning instead
544
+ log.info("Please wait, cleaning up a bit more")
545
+ loop.run_until_complete(asyncio.sleep(2))
546
+ asyncio.set_event_loop(None)
547
+ loop.stop()
548
+ loop.close()
549
+ exit_code = red._shutdown_mode if red is not None else ExitCodes.CRITICAL
550
+ sys.exit(exit_code)
551
+
552
+
553
+ if __name__ == "__main__":
554
+ main()
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/__init__.py ADDED
File without changes
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/__init__.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from redbot.core.bot import Red
2
+
3
+ from .core import Audio
4
+
5
+
6
+ async def setup(bot: Red) -> None:
7
+ cog = Audio(bot)
8
+ await bot.add_cog(cog)
9
+ cog.start_up_task()
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/errors.py ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pathlib import Path
2
+
3
+ import aiohttp
4
+
5
+ from redbot.core.i18n import Translator
6
+
7
+ _ = Translator("Audio", Path(__file__))
8
+
9
+
10
+ class AudioError(Exception):
11
+ """Base exception for errors in the Audio cog."""
12
+
13
+
14
+ class ManagedLavalinkNodeException(AudioError):
15
+ """Base Exception for Managed Lavalink Node Exceptions"""
16
+
17
+
18
+ class NodeUnhealthy(ManagedLavalinkNodeException):
19
+ """Exception Raised when the node health checks fail"""
20
+
21
+
22
+ class InvalidArchitectureException(ManagedLavalinkNodeException):
23
+ """Error thrown when the Managed Lavalink node is started on an invalid arch."""
24
+
25
+
26
+ class ManagedLavalinkAlreadyRunningException(ManagedLavalinkNodeException):
27
+ """Exception thrown when a managed Lavalink node is already running"""
28
+
29
+
30
+ class ManagedLavalinkStartFailure(ManagedLavalinkNodeException):
31
+ """Exception thrown when a managed Lavalink node fails to start"""
32
+
33
+
34
+ class ManagedLavalinkPreviouslyShutdownException(ManagedLavalinkNodeException):
35
+ """Exception thrown when a managed Lavalink node already has been shutdown"""
36
+
37
+
38
+ class EarlyExitException(ManagedLavalinkNodeException):
39
+ """some placeholder text I cannot be bothered to add a meaning message atm"""
40
+
41
+
42
+ class UnsupportedJavaException(ManagedLavalinkNodeException):
43
+ """Exception thrown when a managed Lavalink node doesn't have a supported Java"""
44
+
45
+
46
+ class UnexpectedJavaResponseException(ManagedLavalinkNodeException):
47
+ """Exception thrown when Java returns an unexpected response"""
48
+
49
+
50
+ class NoProcessFound(ManagedLavalinkNodeException):
51
+ """Exception thrown when the managed node process is not found"""
52
+
53
+
54
+ class LavalinkDownloadFailed(ManagedLavalinkNodeException, RuntimeError):
55
+ """Downloading the Lavalink jar failed.
56
+
57
+ Attributes
58
+ ----------
59
+ response : aiohttp.ClientResponse
60
+ The response from the server to the failed GET request.
61
+ should_retry : bool
62
+ Whether or not the Audio cog should retry downloading the jar.
63
+ """
64
+
65
+ def __init__(self, *args, response: aiohttp.ClientResponse, should_retry: bool = False):
66
+ super().__init__(*args)
67
+ self.response = response
68
+ self.should_retry = should_retry
69
+
70
+ def __repr__(self) -> str:
71
+ str_args = [*map(str, self.args), self._response_repr()]
72
+ return f"LavalinkDownloadFailed({', '.join(str_args)}"
73
+
74
+ def __str__(self) -> str:
75
+ return f"{super().__str__()} {self._response_repr()}"
76
+
77
+ def _response_repr(self) -> str:
78
+ return f"[{self.response.status} {self.response.reason}]"
79
+
80
+
81
+ class QueryUnauthorized(AudioError):
82
+ """Provided an unauthorized query to audio."""
83
+
84
+ def __init__(self, message, *args):
85
+ self.message = message
86
+ super().__init__(*args)
87
+
88
+
89
+ class TrackEnqueueError(AudioError):
90
+ """Unable to play track."""
91
+
92
+
93
+ class PlayListError(AudioError):
94
+ """Base exception for errors related to playlists."""
95
+
96
+
97
+ class InvalidPlaylistScope(PlayListError):
98
+ """Provided playlist scope is not valid."""
99
+
100
+
101
+ class MissingGuild(PlayListError):
102
+ """Trying to access the Guild scope without a guild."""
103
+
104
+
105
+ class MissingAuthor(PlayListError):
106
+ """Trying to access the User scope without an user id."""
107
+
108
+
109
+ class TooManyMatches(PlayListError):
110
+ """Too many playlist match user input."""
111
+
112
+
113
+ class NoMatchesFound(PlayListError):
114
+ """No entries found for this input."""
115
+
116
+
117
+ class NotAllowed(PlayListError):
118
+ """Too many playlist match user input."""
119
+
120
+
121
+ class ApiError(AudioError):
122
+ """Base exception for API errors in the Audio cog."""
123
+
124
+
125
+ class SpotifyApiError(ApiError):
126
+ """Base exception for Spotify API errors."""
127
+
128
+
129
+ class SpotifyFetchError(SpotifyApiError):
130
+ """Fetching Spotify data failed."""
131
+
132
+ def __init__(self, message, *args):
133
+ self.message = message
134
+ super().__init__(*args)
135
+
136
+
137
+ class YouTubeApiError(ApiError):
138
+ """Base exception for YouTube Data API errors."""
139
+
140
+ def __init__(self, message, *args):
141
+ self.message = message
142
+ super().__init__(*args)
143
+
144
+
145
+ class DatabaseError(AudioError):
146
+ """Base exception for database errors in the Audio cog."""
147
+
148
+
149
+ class InvalidTableError(DatabaseError):
150
+ """Provided table to query is not a valid table."""
151
+
152
+
153
+ class LocalTrackError(AudioError):
154
+ """Base exception for local track errors."""
155
+
156
+
157
+ class InvalidLocalTrack(LocalTrackError):
158
+ """Base exception for local track errors."""
159
+
160
+
161
+ class InvalidLocalTrackFolder(LocalTrackError):
162
+ """Base exception for local track errors."""
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/locales/vi-VN.po ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Vietnamese\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: vi\n"
15
+ "X-Crowdin-File-ID: 51\n"
16
+ "Language: vi_VN\n"
17
+
18
+ #: redbot/cogs/audio/converters.py:35
19
+ msgid "\n"
20
+ "Scope must be a valid version of one of the following:\n"
21
+ "​ ​ ​ ​ Global\n"
22
+ "​ ​ ​ ​ Guild\n"
23
+ "​ ​ ​ ​ User\n"
24
+ msgstr ""
25
+
26
+ #: redbot/cogs/audio/converters.py:43
27
+ msgid "\n"
28
+ "Author must be a valid version of one of the following:\n"
29
+ "​ ​ ​ ​ User ID\n"
30
+ "​ ​ ​ ​ User Mention\n"
31
+ "​ ​ ​ ​ User Name#123\n"
32
+ msgstr ""
33
+
34
+ #: redbot/cogs/audio/converters.py:51
35
+ msgid "\n"
36
+ "Guild must be a valid version of one of the following:\n"
37
+ "​ ​ ​ ​ Guild ID\n"
38
+ "​ ​ ​ ​ Exact guild name\n"
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/audio/converters.py:87
42
+ msgid "\"{arg}\" was not found. It must be the ID or complete name of a server which the bot can see."
43
+ msgstr ""
44
+
45
+ #: redbot/cogs/audio/converters.py:96 redbot/cogs/audio/converters.py:136
46
+ msgid "\"{arg}\" does not refer to a unique server. Please use the ID for the server you're trying to specify."
47
+ msgstr ""
48
+
49
+ #: redbot/cogs/audio/converters.py:127
50
+ msgid "\"{arg}\" was not found. It must be the ID or name or mention a user which the bot can see."
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/audio/converters.py:176
54
+ msgid "Could not match '{}' to a playlist."
55
+ msgstr ""
56
+
57
+ #: redbot/cogs/audio/converters.py:241 redbot/cogs/audio/converters.py:263
58
+ #: redbot/cogs/audio/converters.py:283 redbot/cogs/audio/converters.py:368
59
+ #: redbot/cogs/audio/converters.py:380 redbot/cogs/audio/converters.py:405
60
+ #: redbot/cogs/audio/converters.py:431 redbot/cogs/audio/converters.py:453
61
+ #: redbot/cogs/audio/converters.py:480
62
+ msgid "Nothing"
63
+ msgstr ""
64
+
65
+ #: redbot/cogs/audio/converters.py:261
66
+ msgid "You cannot use `--guild`"
67
+ msgstr ""
68
+
69
+ #: redbot/cogs/audio/converters.py:402
70
+ msgid "You cannot use `--to-server`"
71
+ msgstr ""
72
+
73
+ #: redbot/cogs/audio/converters.py:428
74
+ msgid "You cannot use `--from-server`"
75
+ msgstr ""
76
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/manager.py ADDED
@@ -0,0 +1,702 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import asyncio
2
+ import asyncio.subprocess # disables for # https://github.com/PyCQA/pylint/issues/1469
3
+ import contextlib
4
+ import itertools
5
+ import json
6
+ import pathlib
7
+ import platform
8
+ import re
9
+ import shlex
10
+ import shutil
11
+ import tempfile
12
+ from typing import ClassVar, Final, List, Optional, Pattern, Tuple, Union, TYPE_CHECKING
13
+
14
+ import aiohttp
15
+ import lavalink
16
+ import rich.progress
17
+ import yaml
18
+ from discord.backoff import ExponentialBackoff
19
+ from red_commons.logging import getLogger
20
+
21
+ from redbot.core import data_manager, Config
22
+ from redbot.core.i18n import Translator
23
+
24
+ from .errors import (
25
+ LavalinkDownloadFailed,
26
+ InvalidArchitectureException,
27
+ ManagedLavalinkAlreadyRunningException,
28
+ ManagedLavalinkPreviouslyShutdownException,
29
+ UnsupportedJavaException,
30
+ ManagedLavalinkStartFailure,
31
+ UnexpectedJavaResponseException,
32
+ EarlyExitException,
33
+ ManagedLavalinkNodeException,
34
+ NoProcessFound,
35
+ NodeUnhealthy,
36
+ )
37
+ from .utils import (
38
+ change_dict_naming_convention,
39
+ get_max_allocation_size,
40
+ replace_p_with_prefix,
41
+ )
42
+ from ...core.utils import AsyncIter
43
+
44
+ if TYPE_CHECKING:
45
+ from . import Audio
46
+
47
+
48
+ _ = Translator("Audio", pathlib.Path(__file__))
49
+ log = getLogger("red.Audio.manager")
50
+ LAVALINK_DOWNLOAD_DIR: Final[pathlib.Path] = data_manager.cog_data_path(raw_name="Audio")
51
+ LAVALINK_JAR_FILE: Final[pathlib.Path] = LAVALINK_DOWNLOAD_DIR / "Lavalink.jar"
52
+ LAVALINK_APP_YML: Final[pathlib.Path] = LAVALINK_DOWNLOAD_DIR / "application.yml"
53
+
54
+ _FAILED_TO_START: Final[Pattern] = re.compile(rb"Web server failed to start\. (.*)")
55
+
56
+ # Version regexes
57
+ #
58
+ # We expect the output to look something like:
59
+ # $ java -version
60
+ # ...
61
+ # ... version "VERSION STRING HERE" ...
62
+ # ...
63
+ #
64
+ # There are two version formats that we might get here:
65
+ #
66
+ # - Version scheme pre JEP 223 - used by Java 8 and older
67
+ #
68
+ # examples:
69
+ # 1.8.0
70
+ # 1.8.0_275
71
+ # 1.8.0_272-b10
72
+ # 1.8.0_202-internal-201903130451-b08
73
+ # 1.8.0_272-ea-202010231715-b10
74
+ # 1.8.0_272-ea-b10
75
+ #
76
+ # Implementation based on J2SE SDK/JRE Version String Naming Convention document:
77
+ # https://www.oracle.com/java/technologies/javase/versioning-naming.html
78
+ _RE_JAVA_VERSION_LINE_PRE223: Final[Pattern] = re.compile(
79
+ r'version "1\.(?P<major>[0-8])\.(?P<minor>0)(?:_(?:\d+))?(?:-.*)?"'
80
+ )
81
+ # - Version scheme introduced by JEP 223 - used by Java 9 and newer
82
+ #
83
+ # examples:
84
+ # 11
85
+ # 11.0.9
86
+ # 11.0.9.1
87
+ # 11.0.9-ea
88
+ # 11.0.9-202011050024
89
+ #
90
+ # Implementation based on JEP 223 document:
91
+ # https://openjdk.java.net/jeps/223
92
+ _RE_JAVA_VERSION_LINE_223: Final[Pattern] = re.compile(
93
+ r'version "(?P<major>\d+)(?:\.(?P<minor>\d+))?(?:\.\d+)*(\-[a-zA-Z0-9]+)?"'
94
+ )
95
+
96
+ LAVALINK_BRANCH_LINE: Final[Pattern] = re.compile(rb"^Branch\s+(?P<branch>\S+)$", re.MULTILINE)
97
+ LAVALINK_JAVA_LINE: Final[Pattern] = re.compile(rb"^JVM:\s+(?P<jvm>\S+)$", re.MULTILINE)
98
+ LAVALINK_LAVAPLAYER_LINE: Final[Pattern] = re.compile(
99
+ rb"^Lavaplayer\s+(?P<lavaplayer>\S+)$", re.MULTILINE
100
+ )
101
+ LAVALINK_BUILD_TIME_LINE: Final[Pattern] = re.compile(
102
+ rb"^Build time:\s+(?P<build_time>\d+[.\d+]*).*$", re.MULTILINE
103
+ )
104
+ # present until Lavalink 3.5-rc4
105
+ LAVALINK_BUILD_LINE: Final[Pattern] = re.compile(rb"^Build:\s+(?P<build>\d+)$", re.MULTILINE)
106
+ # we don't actually care about what the version format before 3.5-rc4 is exactly
107
+ # as the comparison is based entirely on the build number
108
+ LAVALINK_VERSION_LINE_PRE35: Final[Pattern] = re.compile(
109
+ rb"^Version:\s+(?P<version>\S+)$", re.MULTILINE | re.VERBOSE
110
+ )
111
+ # used for LL 3.5-rc4 and newer
112
+ LAVALINK_VERSION_LINE: Final[Pattern] = re.compile(
113
+ rb"""
114
+ ^
115
+ Version:\s+
116
+ (?P<version>
117
+ (?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)
118
+ # Before LL 3.6, when patch version == 0, it was stripped from the version string
119
+ (?:\.(?P<patch>0|[1-9]\d*))?
120
+ (?:-rc(?P<rc>0|[1-9]\d*))?
121
+ # only used by our downstream Lavalink if we need to make a release before upstream
122
+ (?:_red(?P<red>[1-9]\d*))?
123
+ )
124
+ $
125
+ """,
126
+ re.MULTILINE | re.VERBOSE,
127
+ )
128
+
129
+
130
+ class LavalinkOldVersion:
131
+ def __init__(self, raw_version: str, *, build_number: int) -> None:
132
+ self.raw_version = raw_version
133
+ self.build_number = build_number
134
+
135
+ def __str__(self) -> None:
136
+ return f"{self.raw_version}_{self.build_number}"
137
+
138
+ def __eq__(self, other: object) -> bool:
139
+ if isinstance(other, LavalinkOldVersion):
140
+ return self.build_number == other.build_number
141
+ if isinstance(other, LavalinkVersion):
142
+ return False
143
+ return NotImplemented
144
+
145
+ def __lt__(self, other: object) -> bool:
146
+ if isinstance(other, LavalinkOldVersion):
147
+ return self.build_number < other.build_number
148
+ if isinstance(other, LavalinkVersion):
149
+ return True
150
+ return NotImplemented
151
+
152
+ def __le__(self, other: object) -> bool:
153
+ if isinstance(other, LavalinkOldVersion):
154
+ return self.build_number <= other.build_number
155
+ if isinstance(other, LavalinkVersion):
156
+ return True
157
+ return NotImplemented
158
+
159
+ def __gt__(self, other: object) -> bool:
160
+ if isinstance(other, LavalinkOldVersion):
161
+ return self.build_number > other.build_number
162
+ if isinstance(other, LavalinkVersion):
163
+ return False
164
+ return NotImplemented
165
+
166
+ def __ge__(self, other: object) -> bool:
167
+ if isinstance(other, LavalinkOldVersion):
168
+ return self.build_number >= other.build_number
169
+ if isinstance(other, LavalinkVersion):
170
+ return False
171
+ return NotImplemented
172
+
173
+
174
+ class LavalinkVersion:
175
+ def __init__(
176
+ self,
177
+ major: int,
178
+ minor: int,
179
+ patch: int = 0,
180
+ *,
181
+ rc: Optional[int] = None,
182
+ red: int = 0,
183
+ ) -> None:
184
+ self.major = major
185
+ self.minor = minor
186
+ self.patch = patch
187
+ self.rc = rc
188
+ self.red = red
189
+
190
+ def __str__(self) -> None:
191
+ version = f"{self.major}.{self.minor}.{self.patch}"
192
+ if self.rc is not None:
193
+ version += f"-rc{self.rc}"
194
+ if self.red:
195
+ version += f"_red{self.red}"
196
+ return version
197
+
198
+ def _get_comparison_tuple(self) -> Tuple[int, int, int, bool, int, int]:
199
+ return self.major, self.minor, self.patch, self.rc is None, self.rc or 0, self.red
200
+
201
+ def __eq__(self, other: object) -> bool:
202
+ if isinstance(other, LavalinkVersion):
203
+ return self._get_comparison_tuple() == other._get_comparison_tuple()
204
+ if isinstance(other, LavalinkOldVersion):
205
+ return False
206
+ return NotImplemented
207
+
208
+ def __lt__(self, other: object) -> bool:
209
+ if isinstance(other, LavalinkVersion):
210
+ return self._get_comparison_tuple() < other._get_comparison_tuple()
211
+ if isinstance(other, LavalinkOldVersion):
212
+ return False
213
+ return NotImplemented
214
+
215
+ def __le__(self, other: object) -> bool:
216
+ if isinstance(other, LavalinkVersion):
217
+ return self._get_comparison_tuple() <= other._get_comparison_tuple()
218
+ if isinstance(other, LavalinkOldVersion):
219
+ return False
220
+ return NotImplemented
221
+
222
+ def __gt__(self, other: object) -> bool:
223
+ if isinstance(other, LavalinkVersion):
224
+ return self._get_comparison_tuple() > other._get_comparison_tuple()
225
+ if isinstance(other, LavalinkOldVersion):
226
+ return True
227
+ return NotImplemented
228
+
229
+ def __ge__(self, other: object) -> bool:
230
+ if isinstance(other, LavalinkVersion):
231
+ return self._get_comparison_tuple() >= other._get_comparison_tuple()
232
+ if isinstance(other, LavalinkOldVersion):
233
+ return True
234
+ return NotImplemented
235
+
236
+
237
+ class ServerManager:
238
+ JAR_VERSION: Final[str] = LavalinkOldVersion("3.4.0", build_number=1350)
239
+ LAVALINK_DOWNLOAD_URL: Final[str] = (
240
+ "https://github.com/Cog-Creators/Lavalink-Jars/releases/download/"
241
+ f"{JAR_VERSION}/"
242
+ "Lavalink.jar"
243
+ )
244
+
245
+ _java_available: ClassVar[Optional[bool]] = None
246
+ _java_version: ClassVar[Optional[Tuple[int, int]]] = None
247
+ _up_to_date: ClassVar[Optional[bool]] = None
248
+ _blacklisted_archs: List[str] = []
249
+
250
+ _lavaplayer: ClassVar[Optional[str]] = None
251
+ _lavalink_version: ClassVar[Optional[Union[LavalinkOldVersion, LavalinkVersion]]] = None
252
+ _jvm: ClassVar[Optional[str]] = None
253
+ _lavalink_branch: ClassVar[Optional[str]] = None
254
+ _buildtime: ClassVar[Optional[str]] = None
255
+ _java_exc: ClassVar[str] = "java"
256
+
257
+ def __init__(self, config: Config, cog: "Audio", timeout: Optional[int] = None) -> None:
258
+ self.ready: asyncio.Event = asyncio.Event()
259
+ self._config = config
260
+ self._proc: Optional[asyncio.subprocess.Process] = None # pylint:disable=no-member
261
+ self._shutdown: bool = False
262
+ self.start_monitor_task = None
263
+ self.timeout = timeout
264
+ self.cog = cog
265
+ self._args = []
266
+ self._pipe_task = None
267
+
268
+ @property
269
+ def path(self) -> Optional[str]:
270
+ return self._java_exc
271
+
272
+ @property
273
+ def jvm(self) -> Optional[str]:
274
+ return self._jvm
275
+
276
+ @property
277
+ def lavaplayer(self) -> Optional[str]:
278
+ return self._lavaplayer
279
+
280
+ @property
281
+ def ll_version(self) -> Optional[Union[LavalinkOldVersion, LavalinkVersion]]:
282
+ return self._lavalink_version
283
+
284
+ @property
285
+ def ll_branch(self) -> Optional[str]:
286
+ return self._lavalink_branch
287
+
288
+ @property
289
+ def build_time(self) -> Optional[str]:
290
+ return self._buildtime
291
+
292
+ async def _pipe_output(self):
293
+ with contextlib.suppress(asyncio.CancelledError):
294
+ async for __ in self._proc.stdout:
295
+ pass
296
+
297
+ async def _start(self, java_path: str) -> None:
298
+ arch_name = platform.machine()
299
+ self._java_exc = java_path
300
+ if arch_name in self._blacklisted_archs:
301
+ raise InvalidArchitectureException(
302
+ "You are attempting to run the managed Lavalink node on an unsupported machine architecture."
303
+ )
304
+
305
+ if self._proc is not None:
306
+ if self._proc.returncode is None:
307
+ raise ManagedLavalinkAlreadyRunningException(
308
+ "Managed Lavalink node is already running"
309
+ )
310
+ elif self._shutdown:
311
+ raise ManagedLavalinkPreviouslyShutdownException(
312
+ "Server manager has already been used - create another one"
313
+ )
314
+ await self.process_settings()
315
+ await self.maybe_download_jar()
316
+ args, msg = await self._get_jar_args()
317
+ if msg is not None:
318
+ log.warning(msg)
319
+ command_string = shlex.join(args)
320
+ log.info("Managed Lavalink node startup command: %s", command_string)
321
+ if "-Xmx" not in command_string and msg is None:
322
+ log.warning(
323
+ await replace_p_with_prefix(
324
+ self.cog.bot,
325
+ "Managed Lavalink node maximum allowed RAM not set or higher than available RAM, "
326
+ "please use '[p]llset heapsize' to set a maximum value to avoid out of RAM crashes.",
327
+ )
328
+ )
329
+ try:
330
+ self._proc = (
331
+ await asyncio.subprocess.create_subprocess_exec( # pylint:disable=no-member
332
+ *args,
333
+ cwd=str(LAVALINK_DOWNLOAD_DIR),
334
+ stdout=asyncio.subprocess.PIPE,
335
+ stderr=asyncio.subprocess.STDOUT,
336
+ )
337
+ )
338
+ log.info("Managed Lavalink node started. PID: %s", self._proc.pid)
339
+ try:
340
+ await asyncio.wait_for(self._wait_for_launcher(), timeout=self.timeout)
341
+ except asyncio.TimeoutError:
342
+ log.warning(
343
+ "Timeout occurred whilst waiting for managed Lavalink node to be ready"
344
+ )
345
+ raise
346
+ except asyncio.TimeoutError:
347
+ await self._partial_shutdown()
348
+ except Exception:
349
+ await self._partial_shutdown()
350
+ raise
351
+
352
+ async def process_settings(self):
353
+ data = change_dict_naming_convention(await self._config.yaml.all())
354
+ with open(LAVALINK_APP_YML, "w") as f:
355
+ yaml.safe_dump(data, f)
356
+
357
+ async def _get_jar_args(self) -> Tuple[List[str], Optional[str]]:
358
+ (java_available, java_version) = await self._has_java()
359
+
360
+ if not java_available:
361
+ if self._java_version is None:
362
+ extras = ""
363
+ else:
364
+ extras = f" however you have version {self._java_version} (executable: {self._java_exc})"
365
+ raise UnsupportedJavaException(
366
+ await replace_p_with_prefix(
367
+ self.cog.bot,
368
+ f"The managed Lavalink node requires Java 11 to run{extras};\n"
369
+ "Either install version 11 and restart the bot or connect to an external Lavalink node "
370
+ "(https://docs.discord.red/en/stable/install_guides/index.html)\n"
371
+ "If you already have Java 11 installed then then you will need to specify the executable path, "
372
+ "use '[p]llset java' to set the correct Java 11 executable.",
373
+ ) # TODO: Replace with Audio docs when they are out
374
+ )
375
+ java_xms, java_xmx = list((await self._config.java.all()).values())
376
+ match = re.match(r"^(\d+)([MG])$", java_xmx, flags=re.IGNORECASE)
377
+ command_args = [
378
+ self._java_exc,
379
+ "-Djdk.tls.client.protocols=TLSv1.2",
380
+ f"-Xms{java_xms}",
381
+ ]
382
+ meta = 0, None
383
+ invalid = None
384
+ if match and (
385
+ (int(match.group(1)) * 1024 ** (2 if match.group(2).lower() == "m" else 3))
386
+ <= (meta := get_max_allocation_size(self._java_exc))[0]
387
+ ):
388
+ command_args.append(f"-Xmx{java_xmx}")
389
+ elif meta[0] is not None:
390
+ invalid = await replace_p_with_prefix(
391
+ self.cog.bot,
392
+ "Managed Lavalink node RAM allocation ignored due to system limitations, "
393
+ "please fix this by setting the correct value with '[p]llset heapsize'.",
394
+ )
395
+
396
+ command_args.extend(["-jar", str(LAVALINK_JAR_FILE)])
397
+ self._args = command_args
398
+ return command_args, invalid
399
+
400
+ async def _has_java(self) -> Tuple[bool, Optional[Tuple[int, int]]]:
401
+ if self._java_available:
402
+ # Return cached value if we've checked this before
403
+ return self._java_available, self._java_version
404
+ java_exec = shutil.which(self._java_exc)
405
+ java_available = java_exec is not None
406
+ if not java_available:
407
+ self._java_available = False
408
+ self._java_version = None
409
+ else:
410
+ self._java_version = await self._get_java_version()
411
+ self._java_available = (11, 0) <= self._java_version < (12, 0)
412
+ self._java_exc = java_exec
413
+ return self._java_available, self._java_version
414
+
415
+ async def _get_java_version(self) -> Tuple[int, int]:
416
+ """This assumes we've already checked that java exists."""
417
+ _proc: asyncio.subprocess.Process = (
418
+ await asyncio.create_subprocess_exec( # pylint:disable=no-member
419
+ self._java_exc,
420
+ "-version",
421
+ stdout=asyncio.subprocess.PIPE,
422
+ stderr=asyncio.subprocess.PIPE,
423
+ )
424
+ )
425
+ # java -version outputs to stderr
426
+ _, err = await _proc.communicate()
427
+
428
+ version_info: str = err.decode("utf-8")
429
+ lines = version_info.splitlines()
430
+ for line in lines:
431
+ match = _RE_JAVA_VERSION_LINE_PRE223.search(line)
432
+ if match is None:
433
+ match = _RE_JAVA_VERSION_LINE_223.search(line)
434
+ if match is None:
435
+ continue
436
+ major = int(match["major"])
437
+ minor = 0
438
+ if minor_str := match["minor"]:
439
+ minor = int(minor_str)
440
+
441
+ return major, minor
442
+
443
+ raise UnexpectedJavaResponseException(
444
+ f"The output of `{self._java_exc} -version` was unexpected\n{version_info}."
445
+ )
446
+
447
+ async def _wait_for_launcher(self) -> None:
448
+ log.info("Waiting for Managed Lavalink node to be ready")
449
+ for i in itertools.cycle(range(50)):
450
+ line = await self._proc.stdout.readline()
451
+ if b"Lavalink is ready to accept connections." in line:
452
+ self.ready.set()
453
+ log.info("Managed Lavalink node is ready to receive requests.")
454
+ self._pipe_task = asyncio.create_task(self._pipe_output())
455
+ break
456
+ if _FAILED_TO_START.search(line):
457
+ raise ManagedLavalinkStartFailure(
458
+ f"Lavalink failed to start: {line.decode().strip()}"
459
+ )
460
+ if self._proc.returncode is not None:
461
+ # Avoid Console spam only print once every 2 seconds
462
+ raise EarlyExitException("Managed Lavalink node server exited early.")
463
+ if i == 49:
464
+ # Sleep after 50 lines to prevent busylooping
465
+ await asyncio.sleep(0.1)
466
+
467
+ async def shutdown(self) -> None:
468
+ if self.start_monitor_task is not None:
469
+ self.start_monitor_task.cancel()
470
+ await self._partial_shutdown()
471
+
472
+ async def _partial_shutdown(self) -> None:
473
+ self.ready.clear()
474
+ if self._shutdown is True:
475
+ # For convenience, calling this method more than once or calling it before starting it
476
+ # does nothing.
477
+ return
478
+ if self._pipe_task:
479
+ self._pipe_task.cancel()
480
+ if self._proc is not None:
481
+ self._proc.terminate()
482
+ await self._proc.wait()
483
+ self._proc = None
484
+ self._shutdown = True
485
+
486
+ async def _download_jar(self) -> None:
487
+ log.info("Downloading Lavalink.jar...")
488
+ async with aiohttp.ClientSession(json_serialize=json.dumps) as session:
489
+ async with session.get(self.LAVALINK_DOWNLOAD_URL) as response:
490
+ if response.status == 404:
491
+ # A 404 means our LAVALINK_DOWNLOAD_URL is invalid, so likely the jar version
492
+ # hasn't been published yet
493
+ raise LavalinkDownloadFailed(
494
+ f"Lavalink jar version {self.JAR_VERSION} hasn't been published yet",
495
+ response=response,
496
+ should_retry=False,
497
+ )
498
+ elif 400 <= response.status < 600:
499
+ # Other bad responses should be raised but we should retry just incase
500
+ raise LavalinkDownloadFailed(response=response, should_retry=True)
501
+ fd, path = tempfile.mkstemp()
502
+ file = open(fd, "wb")
503
+ nbytes = 0
504
+ with rich.progress.Progress(
505
+ rich.progress.SpinnerColumn(),
506
+ rich.progress.TextColumn("[progress.description]{task.description}"),
507
+ rich.progress.BarColumn(),
508
+ rich.progress.TextColumn("[progress.percentage]{task.percentage:>3.0f}%"),
509
+ rich.progress.TimeRemainingColumn(),
510
+ rich.progress.TimeElapsedColumn(),
511
+ ) as progress:
512
+ progress_task_id = progress.add_task(
513
+ "[red]Downloading Lavalink.jar", total=response.content_length
514
+ )
515
+ try:
516
+ chunk = await response.content.read(1024)
517
+ while chunk:
518
+ chunk_size = file.write(chunk)
519
+ nbytes += chunk_size
520
+ progress.update(progress_task_id, advance=chunk_size)
521
+ chunk = await response.content.read(1024)
522
+ file.flush()
523
+ finally:
524
+ file.close()
525
+
526
+ shutil.move(path, str(LAVALINK_JAR_FILE), copy_function=shutil.copyfile)
527
+
528
+ log.info("Successfully downloaded Lavalink.jar (%s bytes written)", format(nbytes, ","))
529
+ await self._is_up_to_date()
530
+
531
+ async def _is_up_to_date(self):
532
+ if self._up_to_date is True:
533
+ # Return cached value if we've checked this before
534
+ return True
535
+ args, _ = await self._get_jar_args()
536
+ args.append("--version")
537
+ _proc = await asyncio.subprocess.create_subprocess_exec( # pylint:disable=no-member
538
+ *args,
539
+ cwd=str(LAVALINK_DOWNLOAD_DIR),
540
+ stdout=asyncio.subprocess.PIPE,
541
+ stderr=asyncio.subprocess.STDOUT,
542
+ )
543
+ stdout = (await _proc.communicate())[0]
544
+ if (branch := LAVALINK_BRANCH_LINE.search(stdout)) is None:
545
+ # Output is unexpected, suspect corrupted jarfile
546
+ return False
547
+ if (java := LAVALINK_JAVA_LINE.search(stdout)) is None:
548
+ # Output is unexpected, suspect corrupted jarfile
549
+ return False
550
+ if (lavaplayer := LAVALINK_LAVAPLAYER_LINE.search(stdout)) is None:
551
+ # Output is unexpected, suspect corrupted jarfile
552
+ return False
553
+ if (buildtime := LAVALINK_BUILD_TIME_LINE.search(stdout)) is None:
554
+ # Output is unexpected, suspect corrupted jarfile
555
+ return False
556
+
557
+ if (build := LAVALINK_BUILD_LINE.search(stdout)) is not None:
558
+ if (version := LAVALINK_VERSION_LINE_PRE35.search(stdout)) is None:
559
+ # Output is unexpected, suspect corrupted jarfile
560
+ return False
561
+ self._lavalink_version = LavalinkOldVersion(
562
+ raw_version=version["version"].decode(),
563
+ build_number=int(build["build"]),
564
+ )
565
+ elif (version := LAVALINK_VERSION_LINE.search(stdout)) is not None:
566
+ self._lavalink_version = LavalinkVersion(
567
+ major=int(version["major"]),
568
+ minor=int(version["minor"]),
569
+ patch=int(version["patch"] or 0),
570
+ rc=int(version["rc"]) if version["rc"] is not None else None,
571
+ red=int(version["red"] or 0),
572
+ )
573
+ else:
574
+ # Output is unexpected, suspect corrupted jarfile
575
+ return False
576
+ date = buildtime["build_time"].decode()
577
+ date = date.replace(".", "/")
578
+ self._lavalink_branch = branch["branch"].decode()
579
+ self._jvm = java["jvm"].decode()
580
+ self._lavaplayer = lavaplayer["lavaplayer"].decode()
581
+ self._buildtime = date
582
+ self._up_to_date = self._lavalink_version >= self.JAR_VERSION
583
+ return self._up_to_date
584
+
585
+ async def maybe_download_jar(self):
586
+ if not (LAVALINK_JAR_FILE.exists() and await self._is_up_to_date()):
587
+ await self._download_jar()
588
+
589
+ async def wait_until_ready(self, timeout: Optional[float] = None):
590
+ await asyncio.wait_for(self.ready.wait(), timeout=timeout or self.timeout)
591
+
592
+ async def start_monitor(self, java_path: str):
593
+ retry_count = 0
594
+ backoff = ExponentialBackoff(base=7)
595
+ while True:
596
+ try:
597
+ self._shutdown = False
598
+ if self._proc is None or self._proc.returncode is not None:
599
+ self.ready.clear()
600
+ await self._start(java_path=java_path)
601
+ while True:
602
+ await self.wait_until_ready(timeout=self.timeout)
603
+ if self._proc.returncode is not None:
604
+ raise NoProcessFound
605
+ try:
606
+ node = lavalink.get_all_nodes()[0]
607
+ if node.ready:
608
+ # Hoping this throws an exception which will then trigger a restart
609
+ await node._ws.ping()
610
+ backoff = ExponentialBackoff(
611
+ base=7
612
+ ) # Reassign Backoff to reset it on successful ping.
613
+ # ExponentialBackoff.reset() would be a nice method to have
614
+ await asyncio.sleep(1)
615
+ else:
616
+ await asyncio.sleep(5)
617
+ except IndexError:
618
+ # In case lavalink.get_all_nodes() returns 0 Nodes
619
+ # (During a connect or multiple connect failures)
620
+ try:
621
+ log.debug(
622
+ "Managed node monitor detected RLL is not connected to any nodes"
623
+ )
624
+ await lavalink.wait_until_ready(timeout=60, wait_if_no_node=60)
625
+ except asyncio.TimeoutError:
626
+ self.cog.lavalink_restart_connect(manual=True)
627
+ return # lavalink_restart_connect will cause a new monitor task to be created.
628
+ except Exception as exc:
629
+ log.debug(exc, exc_info=exc)
630
+ raise NodeUnhealthy(str(exc))
631
+ except NoProcessFound:
632
+ await self._partial_shutdown()
633
+ except asyncio.TimeoutError:
634
+ delay = backoff.delay()
635
+ await self._partial_shutdown()
636
+ log.warning(
637
+ "Lavalink Managed node health check timeout, restarting in %s seconds",
638
+ delay,
639
+ )
640
+ await asyncio.sleep(delay)
641
+ except NodeUnhealthy:
642
+ delay = backoff.delay()
643
+ await self._partial_shutdown()
644
+ log.warning(
645
+ "Lavalink Managed node health check failed, restarting in %s seconds",
646
+ delay,
647
+ )
648
+ await asyncio.sleep(delay)
649
+ except LavalinkDownloadFailed as exc:
650
+ delay = backoff.delay()
651
+ if exc.should_retry:
652
+ log.warning(
653
+ "Lavalink Managed node download failed retrying in %s seconds\n%s",
654
+ delay,
655
+ exc.response,
656
+ )
657
+ retry_count += 1
658
+ await self._partial_shutdown()
659
+ await asyncio.sleep(delay)
660
+ else:
661
+ log.critical(
662
+ "Fatal exception whilst starting managed Lavalink node, "
663
+ "aborting...\n%s",
664
+ exc.response,
665
+ )
666
+ self.cog.lavalink_connection_aborted = True
667
+ return await self.shutdown()
668
+ except InvalidArchitectureException:
669
+ log.critical("Invalid machine architecture, cannot run a managed Lavalink node.")
670
+ self.cog.lavalink_connection_aborted = True
671
+ return await self.shutdown()
672
+ except (UnsupportedJavaException, UnexpectedJavaResponseException) as exc:
673
+ log.critical(exc)
674
+ self.cog.lavalink_connection_aborted = True
675
+ return await self.shutdown()
676
+ except ManagedLavalinkNodeException as exc:
677
+ delay = backoff.delay()
678
+ log.critical(
679
+ exc,
680
+ )
681
+ await self._partial_shutdown()
682
+ log.warning(
683
+ "Lavalink Managed node startup failed retrying in %s seconds",
684
+ delay,
685
+ )
686
+ await asyncio.sleep(delay)
687
+ except asyncio.CancelledError:
688
+ return
689
+ except Exception as exc:
690
+ delay = backoff.delay()
691
+ log.warning(
692
+ "Lavalink Managed node startup failed retrying in %s seconds",
693
+ delay,
694
+ )
695
+ log.debug(exc, exc_info=exc)
696
+ await self._partial_shutdown()
697
+ await asyncio.sleep(delay)
698
+
699
+ async def start(self, java_path: str):
700
+ if self.start_monitor_task is not None:
701
+ await self.shutdown()
702
+ self.start_monitor_task = asyncio.create_task(self.start_monitor(java_path))
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/audio/sql_statements.py ADDED
@@ -0,0 +1,646 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import Final
2
+
3
+ # TODO: https://github.com/Cog-Creators/Red-DiscordBot/pull/3195#issuecomment-567821701
4
+ # Thanks a lot Sinbad!
5
+
6
+ __all__ = [
7
+ # PRAGMA Statements
8
+ "PRAGMA_SET_temp_store",
9
+ "PRAGMA_SET_journal_mode",
10
+ "PRAGMA_SET_read_uncommitted",
11
+ "PRAGMA_FETCH_user_version",
12
+ "PRAGMA_SET_user_version",
13
+ # Data Deletion statement
14
+ "HANDLE_DISCORD_DATA_DELETION_QUERY",
15
+ # Playlist table statements
16
+ "PLAYLIST_CREATE_TABLE",
17
+ "PLAYLIST_DELETE",
18
+ "PLAYLIST_DELETE_SCOPE",
19
+ "PLAYLIST_DELETE_SCHEDULED",
20
+ "PLAYLIST_FETCH_ALL",
21
+ "PLAYLIST_FETCH_ALL_WITH_FILTER",
22
+ "PLAYLIST_FETCH_ALL_CONVERTER",
23
+ "PLAYLIST_FETCH",
24
+ "PLAYLIST_UPSERT",
25
+ "PLAYLIST_CREATE_INDEX",
26
+ # YouTube table statements
27
+ "YOUTUBE_DROP_TABLE",
28
+ "YOUTUBE_CREATE_TABLE",
29
+ "YOUTUBE_CREATE_INDEX",
30
+ "YOUTUBE_UPSERT",
31
+ "YOUTUBE_UPDATE",
32
+ "YOUTUBE_QUERY",
33
+ "YOUTUBE_QUERY_ALL",
34
+ "YOUTUBE_DELETE_OLD_ENTRIES",
35
+ "YOUTUBE_QUERY_LAST_FETCHED_RANDOM",
36
+ # Spotify table statements
37
+ "SPOTIFY_DROP_TABLE",
38
+ "SPOTIFY_CREATE_INDEX",
39
+ "SPOTIFY_CREATE_TABLE",
40
+ "SPOTIFY_UPSERT",
41
+ "SPOTIFY_QUERY",
42
+ "SPOTIFY_QUERY_ALL",
43
+ "SPOTIFY_UPDATE",
44
+ "SPOTIFY_DELETE_OLD_ENTRIES",
45
+ "SPOTIFY_QUERY_LAST_FETCHED_RANDOM",
46
+ # Lavalink table statements
47
+ "LAVALINK_DROP_TABLE",
48
+ "LAVALINK_CREATE_TABLE",
49
+ "LAVALINK_CREATE_INDEX",
50
+ "LAVALINK_UPSERT",
51
+ "LAVALINK_UPDATE",
52
+ "LAVALINK_QUERY",
53
+ "LAVALINK_QUERY_ALL",
54
+ "LAVALINK_QUERY_LAST_FETCHED_RANDOM",
55
+ "LAVALINK_DELETE_OLD_ENTRIES",
56
+ "LAVALINK_FETCH_ALL_ENTRIES_GLOBAL",
57
+ # Persisting Queue statements
58
+ "PERSIST_QUEUE_DROP_TABLE",
59
+ "PERSIST_QUEUE_CREATE_TABLE",
60
+ "PERSIST_QUEUE_CREATE_INDEX",
61
+ "PERSIST_QUEUE_PLAYED",
62
+ "PERSIST_QUEUE_DELETE_SCHEDULED",
63
+ "PERSIST_QUEUE_FETCH_ALL",
64
+ "PERSIST_QUEUE_UPSERT",
65
+ "PERSIST_QUEUE_BULK_PLAYED",
66
+ ]
67
+
68
+ # PRAGMA Statements
69
+
70
+ PRAGMA_SET_temp_store: Final[
71
+ str
72
+ ] = """
73
+ PRAGMA temp_store = 2;
74
+ """
75
+ PRAGMA_SET_journal_mode: Final[
76
+ str
77
+ ] = """
78
+ PRAGMA journal_mode = wal;
79
+ """
80
+ PRAGMA_SET_read_uncommitted: Final[
81
+ str
82
+ ] = """
83
+ PRAGMA read_uncommitted = 1;
84
+ """
85
+ PRAGMA_FETCH_user_version: Final[
86
+ str
87
+ ] = """
88
+ pragma user_version;
89
+ """
90
+ PRAGMA_SET_user_version: Final[
91
+ str
92
+ ] = """
93
+ pragma user_version=3;
94
+ """
95
+
96
+ # Data Deletion
97
+ # This is intentionally 2 seperate transactions due to concerns
98
+ # Draper had. This should prevent it from being a large issue,
99
+ # as this is no different than triggering a bulk deletion now.
100
+ HANDLE_DISCORD_DATA_DELETION_QUERY: Final[
101
+ str
102
+ ] = """
103
+ BEGIN TRANSACTION;
104
+
105
+ UPDATE playlists
106
+ SET deleted = true
107
+ WHERE scope_id = :user_id ;
108
+
109
+ UPDATE playlists
110
+ SET author_id = 0xde1
111
+ WHERE author_id = :user_id ;
112
+
113
+ COMMIT TRANSACTION;
114
+
115
+ BEGIN TRANSACTION;
116
+
117
+ DELETE FROM PLAYLISTS
118
+ WHERE deleted=true;
119
+
120
+ COMMIT TRANSACTION;
121
+ """
122
+
123
+ # Playlist table statements
124
+ PLAYLIST_CREATE_TABLE: Final[
125
+ str
126
+ ] = """
127
+ CREATE TABLE IF NOT EXISTS playlists (
128
+ scope_type INTEGER NOT NULL,
129
+ playlist_id INTEGER NOT NULL,
130
+ playlist_name TEXT NOT NULL,
131
+ scope_id INTEGER NOT NULL,
132
+ author_id INTEGER NOT NULL,
133
+ deleted BOOLEAN DEFAULT false,
134
+ playlist_url TEXT,
135
+ tracks JSON,
136
+ PRIMARY KEY (playlist_id, scope_id, scope_type)
137
+ );
138
+ """
139
+ PLAYLIST_DELETE: Final[
140
+ str
141
+ ] = """
142
+ UPDATE playlists
143
+ SET
144
+ deleted = true
145
+ WHERE
146
+ (
147
+ scope_type = :scope_type
148
+ AND playlist_id = :playlist_id
149
+ AND scope_id = :scope_id
150
+ )
151
+ ;
152
+ """
153
+ PLAYLIST_DELETE_SCOPE: Final[
154
+ str
155
+ ] = """
156
+ DELETE
157
+ FROM
158
+ playlists
159
+ WHERE
160
+ scope_type = :scope_type ;
161
+ """
162
+ PLAYLIST_DELETE_SCHEDULED: Final[
163
+ str
164
+ ] = """
165
+ DELETE
166
+ FROM
167
+ playlists
168
+ WHERE
169
+ deleted = true;
170
+ """
171
+ PLAYLIST_FETCH_ALL: Final[
172
+ str
173
+ ] = """
174
+ SELECT
175
+ playlist_id,
176
+ playlist_name,
177
+ scope_id,
178
+ author_id,
179
+ playlist_url,
180
+ tracks
181
+ FROM
182
+ playlists
183
+ WHERE
184
+ scope_type = :scope_type
185
+ AND scope_id = :scope_id
186
+ AND deleted = false
187
+ ;
188
+ """
189
+ PLAYLIST_FETCH_ALL_WITH_FILTER: Final[
190
+ str
191
+ ] = """
192
+ SELECT
193
+ playlist_id,
194
+ playlist_name,
195
+ scope_id,
196
+ author_id,
197
+ playlist_url,
198
+ tracks
199
+ FROM
200
+ playlists
201
+ WHERE
202
+ (
203
+ scope_type = :scope_type
204
+ AND scope_id = :scope_id
205
+ AND author_id = :author_id
206
+ AND deleted = false
207
+ )
208
+ ;
209
+ """
210
+ PLAYLIST_FETCH_ALL_CONVERTER: Final[
211
+ str
212
+ ] = """
213
+ SELECT
214
+ playlist_id,
215
+ playlist_name,
216
+ scope_id,
217
+ author_id,
218
+ playlist_url,
219
+ tracks
220
+ FROM
221
+ playlists
222
+ WHERE
223
+ (
224
+ scope_type = :scope_type
225
+ AND
226
+ (
227
+ playlist_id = :playlist_id
228
+ OR
229
+ LOWER(playlist_name) LIKE "%" || COALESCE(LOWER(:playlist_name), "") || "%"
230
+ )
231
+ AND deleted = false
232
+ )
233
+ ;
234
+ """
235
+ PLAYLIST_FETCH: Final[
236
+ str
237
+ ] = """
238
+ SELECT
239
+ playlist_id,
240
+ playlist_name,
241
+ scope_id,
242
+ author_id,
243
+ playlist_url,
244
+ tracks
245
+ FROM
246
+ playlists
247
+ WHERE
248
+ (
249
+ scope_type = :scope_type
250
+ AND playlist_id = :playlist_id
251
+ AND scope_id = :scope_id
252
+ AND deleted = false
253
+ )
254
+ LIMIT 1;
255
+ """
256
+ PLAYLIST_UPSERT: Final[
257
+ str
258
+ ] = """
259
+ INSERT INTO
260
+ playlists ( scope_type, playlist_id, playlist_name, scope_id, author_id, playlist_url, tracks )
261
+ VALUES
262
+ (
263
+ :scope_type, :playlist_id, :playlist_name, :scope_id, :author_id, :playlist_url, :tracks
264
+ )
265
+ ON CONFLICT (scope_type, playlist_id, scope_id) DO
266
+ UPDATE
267
+ SET
268
+ playlist_name = excluded.playlist_name,
269
+ playlist_url = excluded.playlist_url,
270
+ tracks = excluded.tracks;
271
+ """
272
+ PLAYLIST_CREATE_INDEX: Final[
273
+ str
274
+ ] = """
275
+ CREATE INDEX IF NOT EXISTS name_index ON playlists (
276
+ scope_type, playlist_id, playlist_name, scope_id
277
+ );
278
+ """
279
+
280
+ # YouTube table statements
281
+ YOUTUBE_DROP_TABLE: Final[
282
+ str
283
+ ] = """
284
+ DROP TABLE IF EXISTS youtube;
285
+ """
286
+ YOUTUBE_CREATE_TABLE: Final[
287
+ str
288
+ ] = """
289
+ CREATE TABLE IF NOT EXISTS youtube(
290
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
291
+ track_info TEXT,
292
+ youtube_url TEXT,
293
+ last_updated INTEGER,
294
+ last_fetched INTEGER
295
+ );
296
+ """
297
+ YOUTUBE_CREATE_INDEX: Final[
298
+ str
299
+ ] = """
300
+ CREATE UNIQUE INDEX IF NOT EXISTS idx_youtube_url
301
+ ON youtube (track_info, youtube_url);
302
+ """
303
+ YOUTUBE_UPSERT: Final[
304
+ str
305
+ ] = """INSERT INTO
306
+ youtube
307
+ (
308
+ track_info,
309
+ youtube_url,
310
+ last_updated,
311
+ last_fetched
312
+ )
313
+ VALUES
314
+ (
315
+ :track_info,
316
+ :track_url,
317
+ :last_updated,
318
+ :last_fetched
319
+ )
320
+ ON CONFLICT
321
+ (
322
+ track_info,
323
+ youtube_url
324
+ )
325
+ DO UPDATE
326
+ SET
327
+ track_info = excluded.track_info,
328
+ last_updated = excluded.last_updated
329
+ """
330
+ YOUTUBE_UPDATE: Final[
331
+ str
332
+ ] = """
333
+ UPDATE youtube
334
+ SET last_fetched=:last_fetched
335
+ WHERE track_info=:track;
336
+ """
337
+ YOUTUBE_QUERY: Final[
338
+ str
339
+ ] = """
340
+ SELECT youtube_url, last_updated
341
+ FROM youtube
342
+ WHERE
343
+ track_info=:track
344
+ AND last_updated > :maxage
345
+ LIMIT 1;
346
+ """
347
+ YOUTUBE_QUERY_ALL: Final[
348
+ str
349
+ ] = """
350
+ SELECT youtube_url, last_updated
351
+ FROM youtube
352
+ """
353
+ YOUTUBE_DELETE_OLD_ENTRIES: Final[
354
+ str
355
+ ] = """
356
+ DELETE FROM youtube
357
+ WHERE
358
+ last_updated < :maxage
359
+ ;
360
+ """
361
+ YOUTUBE_QUERY_LAST_FETCHED_RANDOM: Final[
362
+ str
363
+ ] = """
364
+ SELECT youtube_url, last_updated
365
+ FROM youtube
366
+ WHERE
367
+ last_fetched > :day
368
+ AND last_updated > :maxage
369
+ LIMIT 100
370
+ ;
371
+ """
372
+
373
+ # Spotify table statements
374
+ SPOTIFY_DROP_TABLE: Final[
375
+ str
376
+ ] = """
377
+ DROP TABLE IF EXISTS spotify;
378
+ """
379
+ SPOTIFY_CREATE_TABLE: Final[
380
+ str
381
+ ] = """
382
+ CREATE TABLE IF NOT EXISTS spotify(
383
+ id TEXT,
384
+ type TEXT,
385
+ uri TEXT,
386
+ track_name TEXT,
387
+ artist_name TEXT,
388
+ song_url TEXT,
389
+ track_info TEXT,
390
+ last_updated INTEGER,
391
+ last_fetched INTEGER
392
+ );
393
+ """
394
+ SPOTIFY_CREATE_INDEX: Final[
395
+ str
396
+ ] = """
397
+ CREATE UNIQUE INDEX IF NOT EXISTS idx_spotify_uri
398
+ ON spotify (id, type, uri);
399
+ """
400
+ SPOTIFY_UPSERT: Final[
401
+ str
402
+ ] = """INSERT INTO
403
+ spotify
404
+ (
405
+ id, type, uri, track_name, artist_name,
406
+ song_url, track_info, last_updated, last_fetched
407
+ )
408
+ VALUES
409
+ (
410
+ :id, :type, :uri, :track_name, :artist_name,
411
+ :song_url, :track_info, :last_updated, :last_fetched
412
+ )
413
+ ON CONFLICT
414
+ (
415
+ id,
416
+ type,
417
+ uri
418
+ )
419
+ DO UPDATE
420
+ SET
421
+ track_name = excluded.track_name,
422
+ artist_name = excluded.artist_name,
423
+ song_url = excluded.song_url,
424
+ track_info = excluded.track_info,
425
+ last_updated = excluded.last_updated;
426
+ """
427
+ SPOTIFY_UPDATE: Final[
428
+ str
429
+ ] = """
430
+ UPDATE spotify
431
+ SET last_fetched=:last_fetched
432
+ WHERE uri=:uri;
433
+ """
434
+ SPOTIFY_QUERY: Final[
435
+ str
436
+ ] = """
437
+ SELECT track_info, last_updated
438
+ FROM spotify
439
+ WHERE
440
+ uri=:uri
441
+ AND last_updated > :maxage
442
+ LIMIT 1;
443
+ """
444
+ SPOTIFY_QUERY_ALL: Final[
445
+ str
446
+ ] = """
447
+ SELECT track_info, last_updated
448
+ FROM spotify
449
+ """
450
+ SPOTIFY_DELETE_OLD_ENTRIES: Final[
451
+ str
452
+ ] = """
453
+ DELETE FROM spotify
454
+ WHERE
455
+ last_updated < :maxage
456
+ ;
457
+ """
458
+ SPOTIFY_QUERY_LAST_FETCHED_RANDOM: Final[
459
+ str
460
+ ] = """
461
+ SELECT track_info, last_updated
462
+ FROM spotify
463
+ WHERE
464
+ last_fetched > :day
465
+ AND last_updated > :maxage
466
+ LIMIT 100
467
+ ;
468
+ """
469
+
470
+ # Lavalink table statements
471
+ LAVALINK_DROP_TABLE: Final[
472
+ str
473
+ ] = """
474
+ DROP TABLE IF EXISTS lavalink ;
475
+ """
476
+ LAVALINK_CREATE_TABLE: Final[
477
+ str
478
+ ] = """
479
+ CREATE TABLE IF NOT EXISTS lavalink(
480
+ query TEXT,
481
+ data JSON,
482
+ last_updated INTEGER,
483
+ last_fetched INTEGER
484
+
485
+ );
486
+ """
487
+ LAVALINK_CREATE_INDEX: Final[
488
+ str
489
+ ] = """
490
+ CREATE UNIQUE INDEX IF NOT EXISTS idx_lavalink_query
491
+ ON lavalink (query);
492
+ """
493
+ LAVALINK_UPSERT: Final[
494
+ str
495
+ ] = """INSERT INTO
496
+ lavalink
497
+ (
498
+ query,
499
+ data,
500
+ last_updated,
501
+ last_fetched
502
+ )
503
+ VALUES
504
+ (
505
+ :query,
506
+ :data,
507
+ :last_updated,
508
+ :last_fetched
509
+ )
510
+ ON CONFLICT
511
+ (
512
+ query
513
+ )
514
+ DO UPDATE
515
+ SET
516
+ data = excluded.data,
517
+ last_updated = excluded.last_updated;
518
+ """
519
+ LAVALINK_UPDATE: Final[
520
+ str
521
+ ] = """
522
+ UPDATE lavalink
523
+ SET last_fetched=:last_fetched
524
+ WHERE query=:query;
525
+ """
526
+ LAVALINK_QUERY: Final[
527
+ str
528
+ ] = """
529
+ SELECT data, last_updated
530
+ FROM lavalink
531
+ WHERE
532
+ query=:query
533
+ AND last_updated > :maxage
534
+ LIMIT 1;
535
+ """
536
+ LAVALINK_QUERY_ALL: Final[
537
+ str
538
+ ] = """
539
+ SELECT data, last_updated
540
+ FROM lavalink
541
+ """
542
+ LAVALINK_QUERY_LAST_FETCHED_RANDOM: Final[
543
+ str
544
+ ] = """
545
+ SELECT data, last_updated
546
+ FROM lavalink
547
+ WHERE
548
+ last_fetched > :day
549
+ AND last_updated > :maxage
550
+ LIMIT 100
551
+ ;
552
+ """
553
+ LAVALINK_DELETE_OLD_ENTRIES: Final[
554
+ str
555
+ ] = """
556
+ DELETE FROM lavalink
557
+ WHERE
558
+ last_updated < :maxage
559
+ ;
560
+ """
561
+ LAVALINK_FETCH_ALL_ENTRIES_GLOBAL: Final[
562
+ str
563
+ ] = """
564
+ SELECT query, data
565
+ FROM lavalink
566
+ """
567
+
568
+ # Persisting Queue statements
569
+ PERSIST_QUEUE_DROP_TABLE: Final[
570
+ str
571
+ ] = """
572
+ DROP TABLE IF EXISTS persist_queue ;
573
+ """
574
+ PERSIST_QUEUE_CREATE_TABLE: Final[
575
+ str
576
+ ] = """
577
+ CREATE TABLE IF NOT EXISTS persist_queue(
578
+ guild_id INTEGER NOT NULL,
579
+ room_id INTEGER NOT NULL,
580
+ track JSON NOT NULL,
581
+ played BOOLEAN DEFAULT false,
582
+ track_id TEXT NOT NULL,
583
+ time INTEGER NOT NULL,
584
+ PRIMARY KEY (guild_id, room_id, track_id)
585
+ );
586
+ """
587
+ PERSIST_QUEUE_CREATE_INDEX: Final[
588
+ str
589
+ ] = """
590
+ CREATE INDEX IF NOT EXISTS track_index ON persist_queue (guild_id, track_id);
591
+ """
592
+ PERSIST_QUEUE_PLAYED: Final[
593
+ str
594
+ ] = """
595
+ UPDATE persist_queue
596
+ SET
597
+ played = true
598
+ WHERE
599
+ (
600
+ guild_id = :guild_id
601
+ AND track_id = :track_id
602
+ )
603
+ ;
604
+ """
605
+ PERSIST_QUEUE_BULK_PLAYED: Final[
606
+ str
607
+ ] = """
608
+ UPDATE persist_queue
609
+ SET
610
+ played = true
611
+ WHERE guild_id = :guild_id
612
+ ;
613
+ """
614
+ PERSIST_QUEUE_DELETE_SCHEDULED: Final[
615
+ str
616
+ ] = """
617
+ DELETE
618
+ FROM
619
+ persist_queue
620
+ WHERE
621
+ played = true;
622
+ """
623
+ PERSIST_QUEUE_FETCH_ALL: Final[
624
+ str
625
+ ] = """
626
+ SELECT
627
+ guild_id, room_id, track
628
+ FROM
629
+ persist_queue
630
+ WHERE played = false
631
+ ORDER BY time ASC;
632
+ """
633
+ PERSIST_QUEUE_UPSERT: Final[
634
+ str
635
+ ] = """
636
+ INSERT INTO
637
+ persist_queue (guild_id, room_id, track, played, track_id, time)
638
+ VALUES
639
+ (
640
+ :guild_id, :room_id, :track, :played, :track_id, :time
641
+ )
642
+ ON CONFLICT (guild_id, room_id, track_id) DO
643
+ UPDATE
644
+ SET
645
+ time = excluded.time
646
+ """
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/__init__.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from .cleanup import Cleanup
2
+ from redbot.core.bot import Red
3
+
4
+
5
+ async def setup(bot: Red) -> None:
6
+ await bot.add_cog(Cleanup(bot))
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/checks.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from redbot.core.commands import Context, permissions_check
2
+ from redbot.core.utils.mod import is_mod_or_superior, check_permissions
3
+
4
+
5
+ def check_self_permissions():
6
+ async def predicate(ctx: Context):
7
+ if not ctx.guild:
8
+ return True
9
+ if await check_permissions(ctx, {"manage_messages": True}) or await is_mod_or_superior(
10
+ ctx.bot, ctx.author
11
+ ):
12
+ return True
13
+ return False
14
+
15
+ return permissions_check(predicate)
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/cleanup.py ADDED
@@ -0,0 +1,759 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import contextlib
2
+ import logging
3
+ from datetime import datetime, timedelta, timezone
4
+ from typing import Callable, List, Optional, Set, Union
5
+
6
+ import discord
7
+
8
+ from redbot.core import commands, Config
9
+ from redbot.core.bot import Red
10
+ from redbot.core.commands import RawUserIdConverter
11
+ from redbot.core.i18n import Translator, cog_i18n
12
+ from redbot.core.utils.chat_formatting import humanize_number
13
+ from redbot.core.utils.mod import slow_deletion, mass_purge
14
+ from redbot.core.utils.predicates import MessagePredicate
15
+ from .checks import check_self_permissions
16
+ from .converters import PositiveInt, RawMessageIds, positive_int
17
+
18
+ _ = Translator("Cleanup", __file__)
19
+
20
+ log = logging.getLogger("red.cleanup")
21
+
22
+
23
+ @cog_i18n(_)
24
+ class Cleanup(commands.Cog):
25
+ """This cog contains commands used for "cleaning up" (deleting) messages.
26
+
27
+ This is designed as a moderator tool and offers many convenient use cases.
28
+ All cleanup commands only apply to the channel the command is executed in.
29
+
30
+ Messages older than two weeks cannot be mass deleted.
31
+ This is a limitation of the API.
32
+ """
33
+
34
+ def __init__(self, bot: Red):
35
+ super().__init__()
36
+ self.bot = bot
37
+ self.config = Config.get_conf(self, 8927348724, force_registration=True)
38
+ self.config.register_guild(notify=True)
39
+
40
+ async def red_delete_data_for_user(self, **kwargs):
41
+ """Nothing to delete"""
42
+ return
43
+
44
+ @staticmethod
45
+ async def check_100_plus(ctx: commands.Context, number: int) -> bool:
46
+ """
47
+ Called when trying to delete more than 100 messages at once.
48
+
49
+ Prompts the user to choose whether they want to continue or not.
50
+
51
+ Tries its best to cleanup after itself if the response is positive.
52
+ """
53
+
54
+ if ctx.assume_yes:
55
+ return True
56
+
57
+ prompt = await ctx.send(
58
+ _("Are you sure you want to delete {number} messages?").format(
59
+ number=humanize_number(number)
60
+ )
61
+ + " (yes/no)"
62
+ )
63
+ response = await ctx.bot.wait_for("message", check=MessagePredicate.same_context(ctx))
64
+
65
+ if response.content.lower().startswith("y"):
66
+ with contextlib.suppress(discord.NotFound):
67
+ await prompt.delete()
68
+ with contextlib.suppress(discord.HTTPException):
69
+ await response.delete()
70
+ return True
71
+ else:
72
+ await ctx.send(_("Cancelled."))
73
+ return False
74
+
75
+ @staticmethod
76
+ async def get_messages_for_deletion(
77
+ *,
78
+ channel: Union[
79
+ discord.TextChannel, discord.VoiceChannel, discord.DMChannel, discord.Thread
80
+ ],
81
+ number: Optional[PositiveInt] = None,
82
+ check: Callable[[discord.Message], bool] = lambda x: True,
83
+ limit: Optional[PositiveInt] = None,
84
+ before: Union[discord.Message, datetime] = None,
85
+ after: Union[discord.Message, datetime] = None,
86
+ delete_pinned: bool = False,
87
+ ) -> List[discord.Message]:
88
+ """
89
+ Gets a list of messages meeting the requirements to be deleted.
90
+ Generally, the requirements are:
91
+ - We don't have the number of messages to be deleted already
92
+ - The message passes a provided check (if no check is provided,
93
+ this is automatically true)
94
+ - The message is less than 14 days old
95
+ - The message is not pinned
96
+
97
+ Warning: Due to the way the API hands messages back in chunks,
98
+ passing after and a number together is not advisable.
99
+ If you need to accomplish this, you should filter messages on
100
+ the entire applicable range, rather than use this utility.
101
+ """
102
+
103
+ # This isn't actually two weeks ago to allow some wiggle room on API limits
104
+ two_weeks_ago = datetime.now(timezone.utc) - timedelta(days=14, minutes=-5)
105
+
106
+ def message_filter(message):
107
+ return (
108
+ check(message)
109
+ and message.created_at > two_weeks_ago
110
+ and (delete_pinned or not message.pinned)
111
+ )
112
+
113
+ if after:
114
+ if isinstance(after, discord.Message):
115
+ after = after.created_at
116
+ after = max(after, two_weeks_ago)
117
+
118
+ collected = []
119
+ async for message in channel.history(
120
+ limit=limit, before=before, after=after, oldest_first=False
121
+ ):
122
+ if message.created_at < two_weeks_ago:
123
+ break
124
+ if message_filter(message):
125
+ collected.append(message)
126
+ if number is not None and number <= len(collected):
127
+ break
128
+
129
+ return collected
130
+
131
+ async def send_optional_notification(
132
+ self,
133
+ num: int,
134
+ channel: Union[
135
+ discord.TextChannel, discord.VoiceChannel, discord.DMChannel, discord.Thread
136
+ ],
137
+ *,
138
+ subtract_invoking: bool = False,
139
+ ) -> None:
140
+ """
141
+ Sends a notification to the channel that a certain number of messages have been deleted.
142
+ """
143
+ if not hasattr(channel, "guild") or await self.config.guild(channel.guild).notify():
144
+ if subtract_invoking:
145
+ num -= 1
146
+ if num == 1:
147
+ await channel.send(_("1 message was deleted."), delete_after=5)
148
+ else:
149
+ await channel.send(
150
+ _("{num} messages were deleted.").format(num=humanize_number(num)),
151
+ delete_after=5,
152
+ )
153
+
154
+ @staticmethod
155
+ async def get_message_from_reference(
156
+ channel: Union[discord.TextChannel, discord.VoiceChannel, discord.Thread],
157
+ reference: discord.MessageReference,
158
+ ) -> Optional[discord.Message]:
159
+ message = None
160
+ resolved = reference.resolved
161
+ if resolved and isinstance(resolved, discord.Message):
162
+ message = resolved
163
+ elif message := reference.cached_message:
164
+ pass
165
+ else:
166
+ try:
167
+ message = await channel.fetch_message(reference.message_id)
168
+ except discord.NotFound:
169
+ pass
170
+ return message
171
+
172
+ @commands.group()
173
+ async def cleanup(self, ctx: commands.Context):
174
+ """Base command for deleting messages."""
175
+ pass
176
+
177
+ @cleanup.command()
178
+ @commands.guild_only()
179
+ @commands.mod_or_permissions(manage_messages=True)
180
+ @commands.bot_has_permissions(manage_messages=True)
181
+ async def text(
182
+ self, ctx: commands.Context, text: str, number: positive_int, delete_pinned: bool = False
183
+ ):
184
+ """Delete the last X messages matching the specified text in the current channel.
185
+
186
+ Example:
187
+ - `[p]cleanup text "test" 5`
188
+
189
+ Remember to use double quotes.
190
+
191
+ **Arguments:**
192
+
193
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
194
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
195
+ """
196
+
197
+ channel = ctx.channel
198
+
199
+ author = ctx.author
200
+
201
+ if number > 100:
202
+ cont = await self.check_100_plus(ctx, number)
203
+ if not cont:
204
+ return
205
+
206
+ def check(m):
207
+ if text in m.content:
208
+ return True
209
+ else:
210
+ return False
211
+
212
+ to_delete = await self.get_messages_for_deletion(
213
+ channel=channel,
214
+ number=number,
215
+ check=check,
216
+ before=ctx.message,
217
+ delete_pinned=delete_pinned,
218
+ )
219
+ to_delete.append(ctx.message)
220
+
221
+ reason = "{}({}) deleted {} messages containing '{}' in channel #{}.".format(
222
+ author.name,
223
+ author.id,
224
+ humanize_number(len(to_delete), override_locale="en_us"),
225
+ text,
226
+ channel.id,
227
+ )
228
+ log.info(reason)
229
+
230
+ await mass_purge(to_delete, channel, reason=reason)
231
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
232
+
233
+ @cleanup.command()
234
+ @commands.guild_only()
235
+ @commands.mod_or_permissions(manage_messages=True)
236
+ @commands.bot_has_permissions(manage_messages=True)
237
+ async def user(
238
+ self,
239
+ ctx: commands.Context,
240
+ user: Union[discord.Member, RawUserIdConverter],
241
+ number: positive_int,
242
+ delete_pinned: bool = False,
243
+ ):
244
+ """Delete the last X messages from a specified user in the current channel.
245
+
246
+ Examples:
247
+ - `[p]cleanup user @Twentysix 2`
248
+ - `[p]cleanup user Red 6`
249
+
250
+ **Arguments:**
251
+
252
+ - `<user>` The user whose messages are to be cleaned up.
253
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
254
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
255
+ """
256
+ channel = ctx.channel
257
+
258
+ member = None
259
+ if isinstance(user, discord.Member):
260
+ member = user
261
+ _id = member.id
262
+ else:
263
+ _id = user
264
+
265
+ author = ctx.author
266
+
267
+ if number > 100:
268
+ cont = await self.check_100_plus(ctx, number)
269
+ if not cont:
270
+ return
271
+
272
+ def check(m):
273
+ if m.author.id == _id:
274
+ return True
275
+ else:
276
+ return False
277
+
278
+ to_delete = await self.get_messages_for_deletion(
279
+ channel=channel,
280
+ number=number,
281
+ check=check,
282
+ before=ctx.message,
283
+ delete_pinned=delete_pinned,
284
+ )
285
+ to_delete.append(ctx.message)
286
+
287
+ reason = (
288
+ "{}({}) deleted {} messages"
289
+ " made by {}({}) in channel #{}."
290
+ "".format(
291
+ author.name,
292
+ author.id,
293
+ humanize_number(len(to_delete), override_locale="en_US"),
294
+ member or "???",
295
+ _id,
296
+ channel.name,
297
+ )
298
+ )
299
+ log.info(reason)
300
+
301
+ await mass_purge(to_delete, channel, reason=reason)
302
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
303
+
304
+ @cleanup.command()
305
+ @commands.guild_only()
306
+ @commands.mod_or_permissions(manage_messages=True)
307
+ @commands.bot_has_permissions(manage_messages=True)
308
+ async def after(
309
+ self,
310
+ ctx: commands.Context,
311
+ message_id: Optional[RawMessageIds],
312
+ delete_pinned: bool = False,
313
+ ):
314
+ """Delete all messages after a specified message.
315
+
316
+ To get a message id, enable developer mode in Discord's
317
+ settings, 'appearance' tab. Then right click a message
318
+ and copy its id.
319
+ Replying to a message will cleanup all messages after it.
320
+
321
+ **Arguments:**
322
+
323
+ - `<message_id>` The id of the message to cleanup after. This message won't be deleted.
324
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
325
+ """
326
+
327
+ channel = ctx.channel
328
+ author = ctx.author
329
+ after = None
330
+
331
+ if message_id:
332
+ try:
333
+ after = await channel.fetch_message(message_id)
334
+ except discord.NotFound:
335
+ return await ctx.send(_("Message not found."))
336
+ elif ref := ctx.message.reference:
337
+ after = await self.get_message_from_reference(channel, ref)
338
+
339
+ if after is None:
340
+ raise commands.BadArgument
341
+
342
+ to_delete = await self.get_messages_for_deletion(
343
+ channel=channel, number=None, after=after, delete_pinned=delete_pinned
344
+ )
345
+
346
+ reason = "{}({}) deleted {} messages in channel #{}.".format(
347
+ author.name,
348
+ author.id,
349
+ humanize_number(len(to_delete), override_locale="en_US"),
350
+ channel.name,
351
+ )
352
+ log.info(reason)
353
+
354
+ await mass_purge(to_delete, channel, reason=reason)
355
+ await self.send_optional_notification(len(to_delete), channel)
356
+
357
+ @cleanup.command()
358
+ @commands.guild_only()
359
+ @commands.mod_or_permissions(manage_messages=True)
360
+ @commands.bot_has_permissions(manage_messages=True)
361
+ async def before(
362
+ self,
363
+ ctx: commands.Context,
364
+ message_id: Optional[RawMessageIds],
365
+ number: positive_int,
366
+ delete_pinned: bool = False,
367
+ ):
368
+ """Deletes X messages before the specified message.
369
+
370
+ To get a message id, enable developer mode in Discord's
371
+ settings, 'appearance' tab. Then right click a message
372
+ and copy its id.
373
+ Replying to a message will cleanup all messages before it.
374
+
375
+ **Arguments:**
376
+
377
+ - `<message_id>` The id of the message to cleanup before. This message won't be deleted.
378
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
379
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
380
+ """
381
+
382
+ channel = ctx.channel
383
+ author = ctx.author
384
+ before = None
385
+
386
+ if message_id:
387
+ try:
388
+ before = await channel.fetch_message(message_id)
389
+ except discord.NotFound:
390
+ return await ctx.send(_("Message not found."))
391
+ elif ref := ctx.message.reference:
392
+ before = await self.get_message_from_reference(channel, ref)
393
+
394
+ if before is None:
395
+ raise commands.BadArgument
396
+
397
+ to_delete = await self.get_messages_for_deletion(
398
+ channel=channel, number=number, before=before, delete_pinned=delete_pinned
399
+ )
400
+ to_delete.append(ctx.message)
401
+
402
+ reason = "{}({}) deleted {} messages in channel #{}.".format(
403
+ author.name,
404
+ author.id,
405
+ humanize_number(len(to_delete), override_locale="en_US"),
406
+ channel.name,
407
+ )
408
+ log.info(reason)
409
+
410
+ await mass_purge(to_delete, channel, reason=reason)
411
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
412
+
413
+ @cleanup.command()
414
+ @commands.guild_only()
415
+ @commands.mod_or_permissions(manage_messages=True)
416
+ @commands.bot_has_permissions(manage_messages=True)
417
+ async def between(
418
+ self,
419
+ ctx: commands.Context,
420
+ one: RawMessageIds,
421
+ two: RawMessageIds,
422
+ delete_pinned: bool = False,
423
+ ):
424
+ """Delete the messages between Message One and Message Two, providing the messages IDs.
425
+
426
+ The first message ID should be the older message and the second one the newer.
427
+
428
+ Example:
429
+ - `[p]cleanup between 123456789123456789 987654321987654321`
430
+
431
+ **Arguments:**
432
+
433
+ - `<one>` The id of the message to cleanup after. This message won't be deleted.
434
+ - `<two>` The id of the message to cleanup before. This message won't be deleted.
435
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
436
+ """
437
+ channel = ctx.channel
438
+ author = ctx.author
439
+ try:
440
+ mone = await channel.fetch_message(one)
441
+ except discord.errors.NotFound:
442
+ return await ctx.send(
443
+ _("Could not find a message with the ID of {id}.".format(id=one))
444
+ )
445
+ try:
446
+ mtwo = await channel.fetch_message(two)
447
+ except discord.errors.NotFound:
448
+ return await ctx.send(
449
+ _("Could not find a message with the ID of {id}.".format(id=two))
450
+ )
451
+ to_delete = await self.get_messages_for_deletion(
452
+ channel=channel, before=mtwo, after=mone, delete_pinned=delete_pinned
453
+ )
454
+ to_delete.append(ctx.message)
455
+ reason = "{}({}) deleted {} messages in channel #{}.".format(
456
+ author.name,
457
+ author.id,
458
+ humanize_number(len(to_delete), override_locale="en_US"),
459
+ channel.name,
460
+ )
461
+ log.info(reason)
462
+
463
+ await mass_purge(to_delete, channel, reason=reason)
464
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
465
+
466
+ @cleanup.command()
467
+ @commands.guild_only()
468
+ @commands.mod_or_permissions(manage_messages=True)
469
+ @commands.bot_has_permissions(manage_messages=True)
470
+ async def messages(
471
+ self, ctx: commands.Context, number: positive_int, delete_pinned: bool = False
472
+ ):
473
+ """Delete the last X messages in the current channel.
474
+
475
+ Example:
476
+ - `[p]cleanup messages 26`
477
+
478
+ **Arguments:**
479
+
480
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
481
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
482
+ """
483
+
484
+ channel = ctx.channel
485
+ author = ctx.author
486
+
487
+ if number > 100:
488
+ cont = await self.check_100_plus(ctx, number)
489
+ if not cont:
490
+ return
491
+
492
+ to_delete = await self.get_messages_for_deletion(
493
+ channel=channel, number=number, before=ctx.message, delete_pinned=delete_pinned
494
+ )
495
+ to_delete.append(ctx.message)
496
+
497
+ reason = "{}({}) deleted {} messages in channel #{}.".format(
498
+ author.name, author.id, len(to_delete), channel.name
499
+ )
500
+ log.info(reason)
501
+
502
+ await mass_purge(to_delete, channel, reason=reason)
503
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
504
+
505
+ @cleanup.command(name="bot")
506
+ @commands.guild_only()
507
+ @commands.mod_or_permissions(manage_messages=True)
508
+ @commands.bot_has_permissions(manage_messages=True)
509
+ async def cleanup_bot(
510
+ self, ctx: commands.Context, number: positive_int, delete_pinned: bool = False
511
+ ):
512
+ """Clean up command messages and messages from the bot in the current channel.
513
+
514
+ Can only cleanup custom commands and alias commands if those cogs are loaded.
515
+
516
+ **Arguments:**
517
+
518
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
519
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
520
+ """
521
+
522
+ channel = ctx.channel
523
+ author = ctx.message.author
524
+
525
+ if number > 100:
526
+ cont = await self.check_100_plus(ctx, number)
527
+ if not cont:
528
+ return
529
+
530
+ prefixes = await self.bot.get_prefix(ctx.message) # This returns all server prefixes
531
+ if isinstance(prefixes, str):
532
+ prefixes = [prefixes]
533
+
534
+ # In case some idiot sets a null prefix
535
+ if "" in prefixes:
536
+ prefixes.remove("")
537
+
538
+ cc_cog = self.bot.get_cog("CustomCommands")
539
+ if cc_cog is not None:
540
+ command_names: Set[str] = await cc_cog.get_command_names(ctx.guild)
541
+ is_cc = lambda name: name in command_names
542
+ else:
543
+ is_cc = lambda name: False
544
+ alias_cog = self.bot.get_cog("Alias")
545
+ if alias_cog is not None:
546
+ alias_names: Set[str] = set(
547
+ a.name for a in await alias_cog._aliases.get_global_aliases()
548
+ ) | set(a.name for a in await alias_cog._aliases.get_guild_aliases(ctx.guild))
549
+ is_alias = lambda name: name in alias_names
550
+ else:
551
+ is_alias = lambda name: False
552
+
553
+ bot_id = self.bot.user.id
554
+
555
+ def check(m):
556
+ if m.author.id == bot_id:
557
+ return True
558
+ elif m == ctx.message:
559
+ return True
560
+ p = discord.utils.find(m.content.startswith, prefixes)
561
+ if p and len(p) > 0:
562
+ cmd_name = m.content[len(p) :].split(" ")[0]
563
+ return (
564
+ bool(self.bot.get_command(cmd_name)) or is_alias(cmd_name) or is_cc(cmd_name)
565
+ )
566
+ return False
567
+
568
+ to_delete = await self.get_messages_for_deletion(
569
+ channel=channel,
570
+ number=number,
571
+ check=check,
572
+ before=ctx.message,
573
+ delete_pinned=delete_pinned,
574
+ )
575
+ to_delete.append(ctx.message)
576
+
577
+ reason = (
578
+ "{}({}) deleted {}"
579
+ " command messages in channel #{}."
580
+ "".format(
581
+ author.name,
582
+ author.id,
583
+ humanize_number(len(to_delete), override_locale="en_US"),
584
+ channel.name,
585
+ )
586
+ )
587
+ log.info(reason)
588
+
589
+ await mass_purge(to_delete, channel, reason=reason)
590
+ await self.send_optional_notification(len(to_delete), channel, subtract_invoking=True)
591
+
592
+ @cleanup.command(name="self")
593
+ @check_self_permissions()
594
+ async def cleanup_self(
595
+ self,
596
+ ctx: commands.Context,
597
+ number: positive_int,
598
+ match_pattern: str = None,
599
+ delete_pinned: bool = False,
600
+ ):
601
+ """Clean up messages owned by the bot in the current channel.
602
+
603
+ By default, all messages are cleaned. If a second argument is specified,
604
+ it is used for pattern matching - only messages containing the given text will be deleted.
605
+
606
+ Examples:
607
+ - `[p]cleanup self 6`
608
+ - `[p]cleanup self 10 Pong`
609
+ - `[p]cleanup self 7 "" True`
610
+
611
+ **Arguments:**
612
+
613
+ - `<number>` The max number of messages to cleanup. Must be a positive integer.
614
+ - `<match_pattern>` The text that messages must contain to be deleted. Use "" to skip this.
615
+ - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False
616
+ """
617
+ channel = ctx.channel
618
+ author = ctx.message.author
619
+
620
+ if number > 100:
621
+ cont = await self.check_100_plus(ctx, number)
622
+ if not cont:
623
+ return
624
+
625
+ # You can always delete your own messages, this is needed to purge
626
+ can_mass_purge = False
627
+ if type(author) is discord.Member:
628
+ me = ctx.guild.me
629
+ can_mass_purge = ctx.bot_permissions.manage_messages
630
+
631
+ if match_pattern:
632
+
633
+ def content_match(c):
634
+ return match_pattern in c
635
+
636
+ else:
637
+
638
+ def content_match(_):
639
+ return True
640
+
641
+ def check(m):
642
+ if m.author.id != self.bot.user.id:
643
+ return False
644
+ elif content_match(m.content):
645
+ return True
646
+ return False
647
+
648
+ to_delete = await self.get_messages_for_deletion(
649
+ channel=channel,
650
+ number=number,
651
+ check=check,
652
+ before=ctx.message,
653
+ delete_pinned=delete_pinned,
654
+ )
655
+ if can_mass_purge:
656
+ to_delete.append(ctx.message)
657
+
658
+ if ctx.guild:
659
+ channel_name = "channel " + channel.name
660
+ else:
661
+ channel_name = str(channel)
662
+
663
+ reason = (
664
+ "{}({}) deleted {} messages "
665
+ "sent by the bot in {}."
666
+ "".format(
667
+ author.name,
668
+ author.id,
669
+ humanize_number(len(to_delete), override_locale="en_US"),
670
+ channel_name,
671
+ )
672
+ )
673
+ log.info(reason)
674
+
675
+ if can_mass_purge:
676
+ await mass_purge(to_delete, channel, reason=reason)
677
+ else:
678
+ await slow_deletion(to_delete)
679
+ await self.send_optional_notification(
680
+ len(to_delete), channel, subtract_invoking=can_mass_purge
681
+ )
682
+
683
+ @cleanup.command(name="duplicates", aliases=["spam"])
684
+ @commands.guild_only()
685
+ @commands.mod_or_permissions(manage_messages=True)
686
+ @commands.bot_has_permissions(manage_messages=True)
687
+ async def cleanup_duplicates(
688
+ self, ctx: commands.Context, number: positive_int = PositiveInt(50)
689
+ ):
690
+ """Deletes duplicate messages in the channel from the last X messages and keeps only one copy.
691
+
692
+ Defaults to 50.
693
+
694
+ **Arguments:**
695
+
696
+ - `<number>` The number of messages to check for duplicates. Must be a positive integer.
697
+ """
698
+ msgs = []
699
+ spam = []
700
+
701
+ def check(m):
702
+ if m.attachments:
703
+ return False
704
+ c = (
705
+ m.author.id,
706
+ m.content,
707
+ [embed.to_dict() for embed in m.embeds],
708
+ [sticker.id for sticker in m.stickers],
709
+ )
710
+ if c in msgs:
711
+ spam.append(m)
712
+ return True
713
+ else:
714
+ msgs.append(c)
715
+ return False
716
+
717
+ to_delete = await self.get_messages_for_deletion(
718
+ channel=ctx.channel, limit=number, check=check, before=ctx.message
719
+ )
720
+
721
+ if len(to_delete) > 100:
722
+ cont = await self.check_100_plus(ctx, len(to_delete))
723
+ if not cont:
724
+ return
725
+
726
+ log.info(
727
+ "%s (%s) deleted %s spam messages in channel %s (%s).",
728
+ ctx.author,
729
+ ctx.author.id,
730
+ len(to_delete),
731
+ ctx.channel,
732
+ ctx.channel.id,
733
+ )
734
+
735
+ to_delete.append(ctx.message)
736
+ await mass_purge(to_delete, ctx.channel, reason="Duplicate message cleanup")
737
+ await self.send_optional_notification(len(to_delete), ctx.channel, subtract_invoking=True)
738
+
739
+ @commands.group()
740
+ @commands.admin_or_permissions(manage_messages=True)
741
+ async def cleanupset(self, ctx: commands.Context):
742
+ """Manage the settings for the cleanup command."""
743
+ pass
744
+
745
+ @commands.guild_only()
746
+ @cleanupset.command(name="notify")
747
+ async def cleanupset_notify(self, ctx: commands.Context):
748
+ """Toggle clean up notification settings.
749
+
750
+ When enabled, a message will be sent per cleanup, showing how many messages were deleted.
751
+ This message will be deleted after 5 seconds.
752
+ """
753
+ toggle = await self.config.guild(ctx.guild).notify()
754
+ if toggle:
755
+ await self.config.guild(ctx.guild).notify.set(False)
756
+ await ctx.send(_("I will no longer notify of message deletions."))
757
+ else:
758
+ await self.config.guild(ctx.guild).notify.set(True)
759
+ await ctx.send(_("I will now notify of message deletions."))
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/converters.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from typing import NewType, TYPE_CHECKING
2
+
3
+ from redbot.core.commands import BadArgument, Context, Converter
4
+ from redbot.core.i18n import Translator
5
+ from redbot.core.utils.chat_formatting import inline
6
+
7
+ _ = Translator("Cleanup", __file__)
8
+
9
+ SNOWFLAKE_THRESHOLD = 2**63
10
+
11
+
12
+ class RawMessageIds(Converter):
13
+ async def convert(self, ctx: Context, argument: str) -> int:
14
+ if argument.isnumeric() and len(argument) >= 17 and int(argument) < SNOWFLAKE_THRESHOLD:
15
+ return int(argument)
16
+
17
+ raise BadArgument(_("{} doesn't look like a valid message ID.").format(argument))
18
+
19
+
20
+ PositiveInt = NewType("PositiveInt", int)
21
+ if TYPE_CHECKING:
22
+ positive_int = PositiveInt
23
+ else:
24
+
25
+ def positive_int(arg: str) -> int:
26
+ try:
27
+ ret = int(arg)
28
+ except ValueError:
29
+ raise BadArgument(_("{arg} is not an integer.").format(arg=inline(arg)))
30
+ if ret <= 0:
31
+ raise BadArgument(_("{arg} is not a positive integer.").format(arg=inline(arg)))
32
+ return ret
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ar-SA.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Arabic\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: ar\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: ar_SA\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "تم الإلغاء."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "الرسالة غير موجودة."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr "{} لا يبدو معرف رسالة صالح."
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/da-DK.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Danish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: da\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: da_DK\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/de-DE.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: German\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: de\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: de_DE\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "Bist du dir sicher, dass du {number} Nachrichten löschen möchtest? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Abgebrochen."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Nachricht nicht gefunden."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr "{} scheint keine gültige Nachrichten-ID zu sein."
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr "{arg} ist keine ganze Zahl."
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr "{arg} ist keine positive ganze Zahl."
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/es-ES.po ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Spanish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: es-ES\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: es_ES\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr "Este módulo contiene comandos usados para \"limpiar\" (eliminar) mensajes.\n\n"
27
+ " Esto está diseñado como una herramienta de moderación y ofrece muchos casos de uso convenientes.\n"
28
+ " Todos los comandos de limpieza sólo se aplican al canal en el que se ejecuta el comando.\n\n"
29
+ " Los mensajes anteriores a dos semanas no pueden ser eliminados en masa.\n"
30
+ " Esto es una limitación de la API.\n"
31
+ " "
32
+
33
+ #: redbot/cogs/cleanup/cleanup.py:54
34
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
35
+ msgstr "Estas seguro que quieres borrar {number} mensajes? (y/n)"
36
+
37
+ #: redbot/cogs/cleanup/cleanup.py:68
38
+ msgid "Cancelled."
39
+ msgstr "Cancelado."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:144
42
+ #, docstring
43
+ msgid "Base command for deleting messages."
44
+ msgstr "Comando base para eliminar mensajes."
45
+
46
+ #: redbot/cogs/cleanup/cleanup.py:154
47
+ #, docstring
48
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
49
+ " Example:\n"
50
+ " - `[p]cleanup text \"test\" 5`\n\n"
51
+ " Remember to use double quotes.\n\n"
52
+ " **Arguments:**\n\n"
53
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
54
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
55
+ " "
56
+ msgstr "Elimina los últimos x mensajes que coincidían con el texto que has especificado en este canal. \n\n"
57
+ " Ejemplo:\n"
58
+ " - `[p]cleanup text \"prueba\" 5`\n\n"
59
+ " Recuerda usar las doble comillas.\n\n"
60
+ " **Argumentos:**\n\n"
61
+ " - `<number>`El número máximo de mensajes para borrar. Tiene que ser un numero entero positivo.\n"
62
+ " - `<delete_pinned>` Para eliminar un mensaje fijado o no. Por defecto es false \n"
63
+ " "
64
+
65
+ #: redbot/cogs/cleanup/cleanup.py:209
66
+ #, docstring
67
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
68
+ " Examples:\n"
69
+ " - `[p]cleanup user @Twentysix 2`\n"
70
+ " - `[p]cleanup user Red 6`\n\n"
71
+ " **Arguments:**\n\n"
72
+ " - `<user>` The user whose messages are to be cleaned up.\n"
73
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
74
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
75
+ " "
76
+ msgstr "Eliminar los últimos X mensajes de un usuario especificado.\n\n"
77
+ " Ejemplos:\n"
78
+ " - `[p]cleanup user @Twentysix 2`\n"
79
+ " - `[p]cleanup user Red 6`\n\n"
80
+ " **Argumentos:**\n\n"
81
+ " - `<user>` El usuario cuyos mensajes serán limpiados.\n"
82
+ " - `<number>` El número máximo de mensajes a limpiar. Debe ser un entero positivo.\n"
83
+ " - `<delete_pinned>` Si eliminar mensajes fijados o no. Por defecto es False\n"
84
+ " "
85
+
86
+ #: redbot/cogs/cleanup/cleanup.py:282
87
+ #, docstring
88
+ msgid "Delete all messages after a specified message.\n\n"
89
+ " To get a message id, enable developer mode in Discord's\n"
90
+ " settings, 'appearance' tab. Then right click a message\n"
91
+ " and copy its id.\n"
92
+ " Replying to a message will cleanup all messages after it.\n\n"
93
+ " **Arguments:**\n\n"
94
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
95
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
96
+ " "
97
+ msgstr "Borrar todos los mensajes después de un mensaje especificado.\n\n"
98
+ " Para obtener un id de mensaje habilitar el modo de desarrollador en la configuración\n"
99
+ " de Discord, pestaña de 'apariencia'. Luego haga clic derecho en un mensaje\n"
100
+ " y copie su id.\n"
101
+ " Responder a un mensaje limpiará todos los mensajes después de él.\n\n"
102
+ " **Argumentos:**\n\n"
103
+ " - `<message_id>` El id del mensaje a limpiar después. Este mensaje no se eliminará.\n"
104
+ " - `<delete_pinned>` Si borrar o no los mensajes fijados. Por defecto es False\n"
105
+ " "
106
+
107
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
108
+ msgid "Message not found."
109
+ msgstr "Mensaje no encontrado."
110
+
111
+ #: redbot/cogs/cleanup/cleanup.py:335
112
+ #, docstring
113
+ msgid "Deletes X messages before the specified message.\n\n"
114
+ " To get a message id, enable developer mode in Discord's\n"
115
+ " settings, 'appearance' tab. Then right click a message\n"
116
+ " and copy its id.\n"
117
+ " Replying to a message will cleanup all messages before it.\n\n"
118
+ " **Arguments:**\n\n"
119
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
120
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
121
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
122
+ " "
123
+ msgstr "Elimina X mensajes antes del mensaje especificado.\n\n"
124
+ " Para obtener un id de mensaje habilitar el modo de desarrollador en la configuración\n"
125
+ " de Discord, pestaña de 'apariencia'. Luego haga clic derecho en un mensaje\n"
126
+ " y copie su id.\n"
127
+ " Responder a un mensaje limpiará todos los mensajes antes de él.\n\n"
128
+ " **Argumentos:**\n\n"
129
+ " - `<message_id>` El id del mensaje a limpiar antes. Este mensaje no se eliminará.\n"
130
+ " - `<number>` El número máximo de mensajes a limpiar. Debe ser un entero positivo.\n"
131
+ " - `<delete_pinned>` Si eliminar o no los mensajes fijos. Por defecto es False\n"
132
+ " "
133
+
134
+ #: redbot/cogs/cleanup/cleanup.py:390
135
+ #, docstring
136
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
137
+ " The first message ID should be the older message and the second one the newer.\n\n"
138
+ " Example:\n"
139
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
142
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr "Elimine los mensajes entre el mensaje Uno y el mensaje dos, proporcionando los identificadores de los mensajes.\n\n"
146
+ " El primer ID del mensaje debe ser el mensaje más antiguo y el segundo el más nuevo.\n\n"
147
+ " Ejemplo:\n"
148
+ " - `[p]limpieza entre 123456789123456789 987654321987654321`\n\n"
149
+ " **Argumentos:**\n\n"
150
+ " - `<one>` El id del mensaje a limpiar después. Este mensaje no se eliminará.\n"
151
+ " - `<two>` El id del mensaje a limpiar antes. Este mensaje no se eliminará.\n"
152
+ " - `<delete_pinned>` Si eliminar mensajes fijados o no. Por defecto es False\n"
153
+ " "
154
+
155
+ #: redbot/cogs/cleanup/cleanup.py:438
156
+ #, docstring
157
+ msgid "Delete the last X messages in the current channel.\n\n"
158
+ " Example:\n"
159
+ " - `[p]cleanup messages 26`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
162
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
163
+ " "
164
+ msgstr "Eliminar los últimos mensajes X en el canal actual.\n\n"
165
+ " Ejemplo:\n"
166
+ " - `[p]cleanup message 26`\n\n"
167
+ " **Argumentos:**\n\n"
168
+ " - `<number>` El número máximo de mensajes a limpiar. Debe ser un entero positivo.\n"
169
+ " - `<delete_pinned>` Si desea eliminar mensajes fijados o no. Por defecto es False\n"
170
+ " "
171
+
172
+ #: redbot/cogs/cleanup/cleanup.py:476
173
+ #, docstring
174
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
175
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
176
+ " **Arguments:**\n\n"
177
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
178
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
179
+ " "
180
+ msgstr "Limpiar mensajes de comandos y mensajes del bot en el canal actual.\n\n"
181
+ " Sólo puede limpiar comandos personalizados y comandos de alias si se cargan esos programas.\n\n"
182
+ " **Argumentos:**\n\n"
183
+ " - `<number>` El número máximo de mensajes a limpiar. Debe ser un entero positivo.\n"
184
+ " - `<delete_pinned>` Si eliminar mensajes fijados o no. Por defecto es False\n"
185
+ " "
186
+
187
+ #: redbot/cogs/cleanup/cleanup.py:564
188
+ #, docstring
189
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
190
+ " By default, all messages are cleaned. If a second argument is specified,\n"
191
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
192
+ " Examples:\n"
193
+ " - `[p]cleanup self 6`\n"
194
+ " - `[p]cleanup self 10 Pong`\n"
195
+ " - `[p]cleanup self 7 \"\" True`\n\n"
196
+ " **Arguments:**\n\n"
197
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
198
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
199
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
200
+ " "
201
+ msgstr "Limpia los mensajes enviados por el bot en el canal actual.\n\n"
202
+ " Por defecto, todos los mensajes se limpian. Si se especifica un segundo argumento,\n"
203
+ " se utiliza para la coincidencia de patrones - sólo los mensajes que contengan el texto dado serán eliminados.\n\n"
204
+ " Ejemplos:\n"
205
+ " - `[p]cleanup self 6`\n"
206
+ " - `[p]cleanup self 10 Pong`\n"
207
+ " - `[p]cleanup self 7 \"\" True`\n\n"
208
+ " **Argumentos:**\n\n"
209
+ " - `<number>` El número máximo de mensajes a limpiar. Debe ser un entero positivo.\n"
210
+ " - `<match_pattern>` El texto que los mensajes deben contener para ser eliminados. Usa \"\" para omitir esto.\n"
211
+ " - `<delete_pinned>` Si eliminar mensajes fijados o no. Por defecto es False\n"
212
+ " "
213
+
214
+ #: redbot/cogs/cleanup/cleanup.py:650
215
+ #, docstring
216
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
217
+ " Defaults to 50.\n\n"
218
+ " **Arguments:**\n\n"
219
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
220
+ " "
221
+ msgstr "Elimina mensajes duplicados en el canal de los últimos X mensajes y conserva sólo una copia.\n\n"
222
+ " Por defecto es 50.\n\n"
223
+ " **Argumentos:**\n\n"
224
+ " - `<number>` El número de mensajes a buscar duplicados. Debe ser un entero positivo.\n"
225
+ " "
226
+
227
+ #: redbot/cogs/cleanup/converters.py:17
228
+ msgid "{} doesn't look like a valid message ID."
229
+ msgstr "{} no parece una ID de mensaje válido."
230
+
231
+ #: redbot/cogs/cleanup/converters.py:29
232
+ msgid "{arg} is not an integer."
233
+ msgstr "{arg} no es un entero."
234
+
235
+ #: redbot/cogs/cleanup/converters.py:31
236
+ msgid "{arg} is not a positive integer."
237
+ msgstr "{arg} no es un entero positivo."
238
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/fi-FI.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Finnish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: fi\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: fi_FI\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/fr-FR.po ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: French\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: fr\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: fr_FR\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr "Ce cog contient des commandes utilisées pour \"nettoyer\" (supprimer) des messages.\n\n"
27
+ " Il a été conçu comme un outil de modérateur et offre de nombreux cas d'usage.\n"
28
+ " Toutes les commandes de suppression s'appliquent seulement dans le salon dans lequel la commande est exécutée.\n\n"
29
+ " Les messages de plus de deux semaines ne peuvent pas être supprimés en masse.\n"
30
+ " Ceci est une limitation de l'API.\n"
31
+ " "
32
+
33
+ #: redbot/cogs/cleanup/cleanup.py:54
34
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
35
+ msgstr "Êtes vous sûr de supprimer {number} messages ? (y/n)"
36
+
37
+ #: redbot/cogs/cleanup/cleanup.py:68
38
+ msgid "Cancelled."
39
+ msgstr "Annulé."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:144
42
+ #, docstring
43
+ msgid "Base command for deleting messages."
44
+ msgstr "Commande de base pour supprimer les messages."
45
+
46
+ #: redbot/cogs/cleanup/cleanup.py:154
47
+ #, docstring
48
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
49
+ " Example:\n"
50
+ " - `[p]cleanup text \"test\" 5`\n\n"
51
+ " Remember to use double quotes.\n\n"
52
+ " **Arguments:**\n\n"
53
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
54
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
55
+ " "
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/cleanup/cleanup.py:209
59
+ #, docstring
60
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
61
+ " Examples:\n"
62
+ " - `[p]cleanup user @Twentysix 2`\n"
63
+ " - `[p]cleanup user Red 6`\n\n"
64
+ " **Arguments:**\n\n"
65
+ " - `<user>` The user whose messages are to be cleaned up.\n"
66
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
67
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
68
+ " "
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/cleanup/cleanup.py:282
72
+ #, docstring
73
+ msgid "Delete all messages after a specified message.\n\n"
74
+ " To get a message id, enable developer mode in Discord's\n"
75
+ " settings, 'appearance' tab. Then right click a message\n"
76
+ " and copy its id.\n"
77
+ " Replying to a message will cleanup all messages after it.\n\n"
78
+ " **Arguments:**\n\n"
79
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
80
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
81
+ " "
82
+ msgstr ""
83
+
84
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
85
+ msgid "Message not found."
86
+ msgstr "Message introuvable."
87
+
88
+ #: redbot/cogs/cleanup/cleanup.py:335
89
+ #, docstring
90
+ msgid "Deletes X messages before the specified message.\n\n"
91
+ " To get a message id, enable developer mode in Discord's\n"
92
+ " settings, 'appearance' tab. Then right click a message\n"
93
+ " and copy its id.\n"
94
+ " Replying to a message will cleanup all messages before it.\n\n"
95
+ " **Arguments:**\n\n"
96
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
97
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
98
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
99
+ " "
100
+ msgstr ""
101
+
102
+ #: redbot/cogs/cleanup/cleanup.py:390
103
+ #, docstring
104
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
105
+ " The first message ID should be the older message and the second one the newer.\n\n"
106
+ " Example:\n"
107
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
108
+ " **Arguments:**\n\n"
109
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
110
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
111
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/cleanup/cleanup.py:438
116
+ #, docstring
117
+ msgid "Delete the last X messages in the current channel.\n\n"
118
+ " Example:\n"
119
+ " - `[p]cleanup messages 26`\n\n"
120
+ " **Arguments:**\n\n"
121
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
122
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
123
+ " "
124
+ msgstr ""
125
+
126
+ #: redbot/cogs/cleanup/cleanup.py:476
127
+ #, docstring
128
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
129
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
130
+ " **Arguments:**\n\n"
131
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
132
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
133
+ " "
134
+ msgstr ""
135
+
136
+ #: redbot/cogs/cleanup/cleanup.py:564
137
+ #, docstring
138
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
139
+ " By default, all messages are cleaned. If a second argument is specified,\n"
140
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
141
+ " Examples:\n"
142
+ " - `[p]cleanup self 6`\n"
143
+ " - `[p]cleanup self 10 Pong`\n"
144
+ " - `[p]cleanup self 7 \"\" True`\n\n"
145
+ " **Arguments:**\n\n"
146
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
147
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
148
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
149
+ " "
150
+ msgstr ""
151
+
152
+ #: redbot/cogs/cleanup/cleanup.py:650
153
+ #, docstring
154
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
155
+ " Defaults to 50.\n\n"
156
+ " **Arguments:**\n\n"
157
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
158
+ " "
159
+ msgstr "Supprime les messages dupliquées dans le salon depuis les X derniers messages et garde une seule copie.\n\n"
160
+ " Par défaut à 50.\n\n"
161
+ "**Arguments:**\n\n"
162
+ " - `<number>` Le nombre de message à vérifier comme doublon. Doit être un nombre positif.\n"
163
+ " "
164
+
165
+ #: redbot/cogs/cleanup/converters.py:17
166
+ msgid "{} doesn't look like a valid message ID."
167
+ msgstr "{} ne ressemble pas à un ID de message valide."
168
+
169
+ #: redbot/cogs/cleanup/converters.py:29
170
+ msgid "{arg} is not an integer."
171
+ msgstr "{arg} n'est pas un nombre."
172
+
173
+ #: redbot/cogs/cleanup/converters.py:31
174
+ msgid "{arg} is not a positive integer."
175
+ msgstr "{arg} n'est pas un nombre positif."
176
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/hu-HU.po ADDED
@@ -0,0 +1,184 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Hungarian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: hu\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: hu_HU\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr "Ez a cog üzenetek \"tisztogatására\" (törlésére) szolgáló parancsokat tartalmaz.\n\n"
27
+ " Ez egy moderációs eszköznek lett tervezve, és számos kényelmes funckiót tartalmaz.\n"
28
+ " Az összes tisztogató parancs arra a csatornára vonatkozik, ahol az ki volt adva.\n\n"
29
+ " A két hétnél régebbi üzenetek nem törölhetőek csoportosan.\n"
30
+ " Ez az API limitációja.\n"
31
+ " "
32
+
33
+ #: redbot/cogs/cleanup/cleanup.py:54
34
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
35
+ msgstr "Biztosan törölni akarsz {number} üzenetet? (y/n)"
36
+
37
+ #: redbot/cogs/cleanup/cleanup.py:68
38
+ msgid "Cancelled."
39
+ msgstr "Megszakítva."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:144
42
+ #, docstring
43
+ msgid "Base command for deleting messages."
44
+ msgstr "Alap parancs üzenetek törlésére."
45
+
46
+ #: redbot/cogs/cleanup/cleanup.py:154
47
+ #, docstring
48
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
49
+ " Example:\n"
50
+ " - `[p]cleanup text \"test\" 5`\n\n"
51
+ " Remember to use double quotes.\n\n"
52
+ " **Arguments:**\n\n"
53
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
54
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
55
+ " "
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/cleanup/cleanup.py:209
59
+ #, docstring
60
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
61
+ " Examples:\n"
62
+ " - `[p]cleanup user @Twentysix 2`\n"
63
+ " - `[p]cleanup user Red 6`\n\n"
64
+ " **Arguments:**\n\n"
65
+ " - `<user>` The user whose messages are to be cleaned up.\n"
66
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
67
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
68
+ " "
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/cleanup/cleanup.py:282
72
+ #, docstring
73
+ msgid "Delete all messages after a specified message.\n\n"
74
+ " To get a message id, enable developer mode in Discord's\n"
75
+ " settings, 'appearance' tab. Then right click a message\n"
76
+ " and copy its id.\n"
77
+ " Replying to a message will cleanup all messages after it.\n\n"
78
+ " **Arguments:**\n\n"
79
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
80
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
81
+ " "
82
+ msgstr ""
83
+
84
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
85
+ msgid "Message not found."
86
+ msgstr "Üzenet nem található."
87
+
88
+ #: redbot/cogs/cleanup/cleanup.py:335
89
+ #, docstring
90
+ msgid "Deletes X messages before the specified message.\n\n"
91
+ " To get a message id, enable developer mode in Discord's\n"
92
+ " settings, 'appearance' tab. Then right click a message\n"
93
+ " and copy its id.\n"
94
+ " Replying to a message will cleanup all messages before it.\n\n"
95
+ " **Arguments:**\n\n"
96
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
97
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
98
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
99
+ " "
100
+ msgstr ""
101
+
102
+ #: redbot/cogs/cleanup/cleanup.py:390
103
+ #, docstring
104
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
105
+ " The first message ID should be the older message and the second one the newer.\n\n"
106
+ " Example:\n"
107
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
108
+ " **Arguments:**\n\n"
109
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
110
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
111
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
112
+ " "
113
+ msgstr "Törli az üzeneteket a két megadott üzenet között.\n\n"
114
+ " Az első üzenet ID a régebbi, a második az újabb kell legyen.\n\n"
115
+ " Például:\n"
116
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
117
+ " **Paraméterek:**\n\n"
118
+ " - `<one>` Az első üzenet ID-je. Ez még nem lesz törölve.\n"
119
+ " - `<two>` A második üzenet ID-je. Ez már nem lesz törölve.\n"
120
+ " - `<delete_pinned>` Törölje-e a kitűzött üzeneteket is. Alapértelmezetten hamis (False)\n"
121
+ " "
122
+
123
+ #: redbot/cogs/cleanup/cleanup.py:438
124
+ #, docstring
125
+ msgid "Delete the last X messages in the current channel.\n\n"
126
+ " Example:\n"
127
+ " - `[p]cleanup messages 26`\n\n"
128
+ " **Arguments:**\n\n"
129
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
130
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
131
+ " "
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/cleanup/cleanup.py:476
135
+ #, docstring
136
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
137
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
138
+ " **Arguments:**\n\n"
139
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
140
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
141
+ " "
142
+ msgstr ""
143
+
144
+ #: redbot/cogs/cleanup/cleanup.py:564
145
+ #, docstring
146
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
147
+ " By default, all messages are cleaned. If a second argument is specified,\n"
148
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
149
+ " Examples:\n"
150
+ " - `[p]cleanup self 6`\n"
151
+ " - `[p]cleanup self 10 Pong`\n"
152
+ " - `[p]cleanup self 7 \"\" True`\n\n"
153
+ " **Arguments:**\n\n"
154
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
155
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
156
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
157
+ " "
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/cleanup.py:650
161
+ #, docstring
162
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
163
+ " Defaults to 50.\n\n"
164
+ " **Arguments:**\n\n"
165
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
166
+ " "
167
+ msgstr "A legutóbbi X üzenet közül törli a duplikált üzeneteket a csatornában, és csak egy üzenetet tart meg belőle.\n\n"
168
+ " Alapértelmezetten 50 üzenet közül.\n\n"
169
+ " **Paraméterek**:\n\n"
170
+ " - `<number>` Az üzenetek száma, amik között a duplikáltakat keresi. Pozitív egész szám kell legyen.\n"
171
+ " "
172
+
173
+ #: redbot/cogs/cleanup/converters.py:17
174
+ msgid "{} doesn't look like a valid message ID."
175
+ msgstr "{} nem tűnik valós üzenet ID-nek."
176
+
177
+ #: redbot/cogs/cleanup/converters.py:29
178
+ msgid "{arg} is not an integer."
179
+ msgstr "{arg} nem egy egész szám."
180
+
181
+ #: redbot/cogs/cleanup/converters.py:31
182
+ msgid "{arg} is not a positive integer."
183
+ msgstr "{arg} nem egy pozitív egész szám."
184
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/id-ID.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Indonesian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: id\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: id_ID\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Dibatalkan."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Pesan tidak ditemukan."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/it-IT.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Italian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: it\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: it_IT\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Messaggio non trovato."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ja-JP.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Japanese\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: ja\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: ja_JP\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/nb-NO.po ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Norwegian Bokmal\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: nb\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: nb_NO\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr "Denne cog'en inneholder kommandoer som brukes for \"rengjøre\" (slette) meldinger.\n\n"
27
+ " Denne er utformet som et moderatorverktøy og tilbyr mange praktiske brukstilfeller.\n"
28
+ " Alle oppryddingskommandoer gjelder bare for kanalen kommandoen brukes i.\n\n"
29
+ " Meldinger eldre enn to uker kan ikke masseslettes.\n"
30
+ " Dette er en begrensning i APIet.\n"
31
+ " "
32
+
33
+ #: redbot/cogs/cleanup/cleanup.py:54
34
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
35
+ msgstr "Er du sikker på at du vil slette {number} meldinger? (y/n)"
36
+
37
+ #: redbot/cogs/cleanup/cleanup.py:68
38
+ msgid "Cancelled."
39
+ msgstr "Kansellert."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:144
42
+ #, docstring
43
+ msgid "Base command for deleting messages."
44
+ msgstr "Basiskommando for sletting av meldinger."
45
+
46
+ #: redbot/cogs/cleanup/cleanup.py:154
47
+ #, docstring
48
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
49
+ " Example:\n"
50
+ " - `[p]cleanup text \"test\" 5`\n\n"
51
+ " Remember to use double quotes.\n\n"
52
+ " **Arguments:**\n\n"
53
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
54
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
55
+ " "
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/cleanup/cleanup.py:209
59
+ #, docstring
60
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
61
+ " Examples:\n"
62
+ " - `[p]cleanup user @Twentysix 2`\n"
63
+ " - `[p]cleanup user Red 6`\n\n"
64
+ " **Arguments:**\n\n"
65
+ " - `<user>` The user whose messages are to be cleaned up.\n"
66
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
67
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
68
+ " "
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/cleanup/cleanup.py:282
72
+ #, docstring
73
+ msgid "Delete all messages after a specified message.\n\n"
74
+ " To get a message id, enable developer mode in Discord's\n"
75
+ " settings, 'appearance' tab. Then right click a message\n"
76
+ " and copy its id.\n"
77
+ " Replying to a message will cleanup all messages after it.\n\n"
78
+ " **Arguments:**\n\n"
79
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
80
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
81
+ " "
82
+ msgstr "Slett alle meldinger etter en spesifisert melding.\n\n"
83
+ " For å få beskjed id aktiver utviklermodus i Discord's\n"
84
+ " innstillinger, 'utseende' fanen. Deretter klikker du en melding\n"
85
+ " og kopierer sin id.\n"
86
+ " svarer på en melding kommer til å rydde opp alle meldinger etter den.\n\n"
87
+ " **Argumenter:**\n\n"
88
+ " - `<message_id>` beskjeden er id for å rydde opp senere. Denne meldingen vil ikke bli slettet.\n"
89
+ " - `<delete_pinned>` om å slette låste meldinger eller ikke. Standarder på False\n"
90
+ " "
91
+
92
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
93
+ msgid "Message not found."
94
+ msgstr "Melding ikke funnet."
95
+
96
+ #: redbot/cogs/cleanup/cleanup.py:335
97
+ #, docstring
98
+ msgid "Deletes X messages before the specified message.\n\n"
99
+ " To get a message id, enable developer mode in Discord's\n"
100
+ " settings, 'appearance' tab. Then right click a message\n"
101
+ " and copy its id.\n"
102
+ " Replying to a message will cleanup all messages before it.\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
105
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr "Sletter X meldinger før den angitte meldingen.\n\n"
109
+ " For å få beskjed ID aktiver utviklermodus i Discord's\n"
110
+ " innstillinger, 'utseende' fanen. Deretter klikker du en melding\n"
111
+ " og kopierer ID\n"
112
+ " Svar på en melding for å slette alle meldinger før den\n\n"
113
+ " **Argumenter:**\n\n"
114
+ " - `<message_id>` ID-en til meldingen for å rydde opp før. Denne meldingen vil ikke bli slettet.\n"
115
+ " - `<number>` Maks antall meldinger som skal opp. Må være et positivt heltall.\n"
116
+ " - `<delete_pinned>` om å slette låste meldinger eller ikke. Standarder til usant\n"
117
+ " "
118
+
119
+ #: redbot/cogs/cleanup/cleanup.py:390
120
+ #, docstring
121
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
122
+ " The first message ID should be the older message and the second one the newer.\n\n"
123
+ " Example:\n"
124
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
127
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
128
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
129
+ " "
130
+ msgstr "Slett meldingene mellom Melding En og Melding Two, og gjør om meldings-IDer.\n\n"
131
+ " Den første melding-ID skal være den eldre meldingen og den nest den nyere.\n\n"
132
+ " Eksempel:\n"
133
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
134
+ " **Arguments:**\n\n"
135
+ " - `<one>` Inniden av meldingen til opprydding etterpå. Denne meldingen vil ikke bli slettet.\n"
136
+ " - `<two>` beskjeden for å rydde opp før. Denne meldingen vil ikke bli slettet.\n"
137
+ " - `<delete_pinned>` om å slette låste meldinger eller ikke. Standarder til usant\n"
138
+ " "
139
+
140
+ #: redbot/cogs/cleanup/cleanup.py:438
141
+ #, docstring
142
+ msgid "Delete the last X messages in the current channel.\n\n"
143
+ " Example:\n"
144
+ " - `[p]cleanup messages 26`\n\n"
145
+ " **Arguments:**\n\n"
146
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
147
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
148
+ " "
149
+ msgstr ""
150
+
151
+ #: redbot/cogs/cleanup/cleanup.py:476
152
+ #, docstring
153
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
154
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
155
+ " **Arguments:**\n\n"
156
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
157
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
158
+ " "
159
+ msgstr ""
160
+
161
+ #: redbot/cogs/cleanup/cleanup.py:564
162
+ #, docstring
163
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
164
+ " By default, all messages are cleaned. If a second argument is specified,\n"
165
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
166
+ " Examples:\n"
167
+ " - `[p]cleanup self 6`\n"
168
+ " - `[p]cleanup self 10 Pong`\n"
169
+ " - `[p]cleanup self 7 \"\" True`\n\n"
170
+ " **Arguments:**\n\n"
171
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
172
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
173
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
174
+ " "
175
+ msgstr ""
176
+
177
+ #: redbot/cogs/cleanup/cleanup.py:650
178
+ #, docstring
179
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
180
+ " Defaults to 50.\n\n"
181
+ " **Arguments:**\n\n"
182
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
183
+ " "
184
+ msgstr "Sletter dupliserte meldinger i kanalen fra de siste X meldingene og beholder bare en kopi.\n\n"
185
+ " Standard til 50.\n\n"
186
+ " **Argumenter:**\n\n"
187
+ " - `<number>` Antall meldinger for å sjekke etter duplikater. Må være et positivt heltall.\n"
188
+ " "
189
+
190
+ #: redbot/cogs/cleanup/converters.py:17
191
+ msgid "{} doesn't look like a valid message ID."
192
+ msgstr "{} ser ikke ut som en gyldig meldings ID."
193
+
194
+ #: redbot/cogs/cleanup/converters.py:29
195
+ msgid "{arg} is not an integer."
196
+ msgstr "{arg} er ikke et heltall."
197
+
198
+ #: redbot/cogs/cleanup/converters.py:31
199
+ msgid "{arg} is not a positive integer."
200
+ msgstr "{arg} er ikke et positivt heltall."
201
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/nl-NL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Dutch\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: nl\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: nl_NL\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "Weet je zeker dat je {number} berichten wilt verwijderen? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Geannuleerd."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Bericht niet gevonden."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pl-PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Polish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && (n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: pl\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: pl_PL\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "Czy na pewno chcesz usunąć {number} wiadomości? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Anulowano."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Nie znaleziono wiadomości."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr "{} nie wygląda na prawidłowe ID wiadomości."
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr "{arg} nie jest liczbą całkowitą."
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr "{arg} nie jest dodatnią liczbą całkowitą."
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pt-BR.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Portuguese, Brazilian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: pt-BR\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: pt_BR\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Cancelado."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Mensagem não encontrada."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/pt-PT.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Portuguese\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: pt-PT\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: pt_PT\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/ru-RU.po ADDED
@@ -0,0 +1,175 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Russian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: ru\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: ru_RU\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "Вы уверены, что хотите удалить {number} сообщений? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Отменено."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr "Базовая команда для удаления сообщений."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Сообщение не найдено."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr "Удалите сообщения между сообщением 1 и сообщением 2, указав идентификаторы сообщений.\n\n"
109
+ " Первый идентификатор сообщения должен быть старым сообщением, а второй— новым.\n\n"
110
+ " Пример:\n"
111
+ " - `[p]очистка между 123456789123456789 987654321987654321`\n\n"
112
+ " **Аргументы:**\n\n"
113
+ " - `<one>` Идентификатор сообщения для очистки. Это сообщение не будет удалено.\n"
114
+ " - `<two>` Идентификатор сообщения, который нужно очистить раньше. Это сообщение не будет удалено.\n"
115
+ " - `<delete_pinned>` Удалять или нет. По умолчанию Ложь\n"
116
+ " "
117
+
118
+ #: redbot/cogs/cleanup/cleanup.py:438
119
+ #, docstring
120
+ msgid "Delete the last X messages in the current channel.\n\n"
121
+ " Example:\n"
122
+ " - `[p]cleanup messages 26`\n\n"
123
+ " **Arguments:**\n\n"
124
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
125
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
126
+ " "
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/cleanup/cleanup.py:476
130
+ #, docstring
131
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
132
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
133
+ " **Arguments:**\n\n"
134
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
135
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
136
+ " "
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/cleanup/cleanup.py:564
140
+ #, docstring
141
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
142
+ " By default, all messages are cleaned. If a second argument is specified,\n"
143
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
144
+ " Examples:\n"
145
+ " - `[p]cleanup self 6`\n"
146
+ " - `[p]cleanup self 10 Pong`\n"
147
+ " - `[p]cleanup self 7 \"\" True`\n\n"
148
+ " **Arguments:**\n\n"
149
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
150
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
151
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
152
+ " "
153
+ msgstr ""
154
+
155
+ #: redbot/cogs/cleanup/cleanup.py:650
156
+ #, docstring
157
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
158
+ " Defaults to 50.\n\n"
159
+ " **Arguments:**\n\n"
160
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
161
+ " "
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:17
165
+ msgid "{} doesn't look like a valid message ID."
166
+ msgstr "{} не похож на действительный ID сообщения."
167
+
168
+ #: redbot/cogs/cleanup/converters.py:29
169
+ msgid "{arg} is not an integer."
170
+ msgstr "{arg} не является целым числом."
171
+
172
+ #: redbot/cogs/cleanup/converters.py:31
173
+ msgid "{arg} is not a positive integer."
174
+ msgstr "{arg} не является положительным целым числом."
175
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sk-SK.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Slovak\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: sk\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: sk_SK\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sl-SI.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Slovenian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: sl\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: sl_SI\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/sv-SE.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Swedish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: sv-SE\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: sv_SE\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "Är du säker på att du vill ta bort {number} meddelanden? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "Avbruten."
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "Meddelandet kunde inte hittas."
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr "{} ser inte ut som ett giltigt meddelande-ID."
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/tr-TR.po ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Turkish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: tr\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: tr_TR\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr "Bu cog mesajları \"temizlemek\" (silmek) için kullanılan komutlar içerir.\n\n"
27
+ " Bu sunucu yöneticileri için bir araç olarak tasarlanmıştır ve çok sayıda rahatlık sağlar.\n"
28
+ " Temizlik komutlarının tamamı sadece komutun içinde çalıştırıldığı kanala etki eder.\n\n"
29
+ " İki haftadan eski mesajlar topluca silinemez.\n"
30
+ " Bu Discord tarafından getirilmiş bir kısıtlamadır.\n"
31
+ " "
32
+
33
+ #: redbot/cogs/cleanup/cleanup.py:54
34
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
35
+ msgstr "{number} iletileri silmek istediğinizden emin misiniz? (e/h)"
36
+
37
+ #: redbot/cogs/cleanup/cleanup.py:68
38
+ msgid "Cancelled."
39
+ msgstr "İptal."
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:144
42
+ #, docstring
43
+ msgid "Base command for deleting messages."
44
+ msgstr "Mesajları silmek için kullanılan temel komut."
45
+
46
+ #: redbot/cogs/cleanup/cleanup.py:154
47
+ #, docstring
48
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
49
+ " Example:\n"
50
+ " - `[p]cleanup text \"test\" 5`\n\n"
51
+ " Remember to use double quotes.\n\n"
52
+ " **Arguments:**\n\n"
53
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
54
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
55
+ " "
56
+ msgstr "Belirtilen yazıyla uyuşan, şu anki kanalda bulunan son X adet mesajı siler.\n\n"
57
+ " Örnek:\n"
58
+ " - `[p]cleanup text \"test\" 5`\n\n"
59
+ " Çift tırnak kullanmayı unutmayın.\n\n"
60
+ " **Seçenekler:**\n\n"
61
+ " - `<numara>` Maksimum kaç mesaj silineceği, pozitif tam sayı olmak zorundadır.\n"
62
+ " - `<sabit_silme>` Sabitlenmiş mesajların silinip silinmeyeceği, varsayılan olarak silinmezler (False)\n"
63
+ " "
64
+
65
+ #: redbot/cogs/cleanup/cleanup.py:209
66
+ #, docstring
67
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
68
+ " Examples:\n"
69
+ " - `[p]cleanup user @Twentysix 2`\n"
70
+ " - `[p]cleanup user Red 6`\n\n"
71
+ " **Arguments:**\n\n"
72
+ " - `<user>` The user whose messages are to be cleaned up.\n"
73
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
74
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
75
+ " "
76
+ msgstr "Belirtilen kullanıcının göndermiş olduğu şu anki kanalda bulunan son X adet mesajı siler.\n\n"
77
+ " Örnek:\n"
78
+ " - `[p]cleanup user @Twentysix 2`\n"
79
+ " - `[p]cleanup user Red 6`\n\n"
80
+ " **Seçenekler:**\n\n"
81
+ " - `<kullanıcı>` Mesajları silinecek olan kullanıcı\n"
82
+ " - `<rakam>` Maksimum kaç mesaj silineceği, pozitif tam sayı olmak zorundadır.\n"
83
+ " - `<sabit silme>` Sabitlenmiş mesajların silinip silinmeyeceği, varsayılan olarak silinmezler (False)\n"
84
+ " "
85
+
86
+ #: redbot/cogs/cleanup/cleanup.py:282
87
+ #, docstring
88
+ msgid "Delete all messages after a specified message.\n\n"
89
+ " To get a message id, enable developer mode in Discord's\n"
90
+ " settings, 'appearance' tab. Then right click a message\n"
91
+ " and copy its id.\n"
92
+ " Replying to a message will cleanup all messages after it.\n\n"
93
+ " **Arguments:**\n\n"
94
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
95
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
96
+ " "
97
+ msgstr "Belirtilen bir mesajdan sonraki tüm mesajları sil.\n\n"
98
+ " Bir mesaj idsi edinmek için Discord ayarlarına girip\n"
99
+ " \"görünüm\" sekmesinden geliştirici modunu açın.\n"
100
+ " Sonra bir mesaja sağ tıklayıp idsini kopyalayın.\n\n"
101
+ " **Seçenekler:**\n\n"
102
+ " - `<mesaj_idsi>` Sonrasındaki mesajlar silinecek olan mesajın Idsi. Bu mesajın kendisi silinmez.\n"
103
+ " -`<sabit_silme>` Sabit mesajların silinip silinmeyeceği. Varsayılan olarak kapalıdır. (False)\n"
104
+ " "
105
+
106
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
107
+ msgid "Message not found."
108
+ msgstr "Mesaj bulunamadı."
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:335
111
+ #, docstring
112
+ msgid "Deletes X messages before the specified message.\n\n"
113
+ " To get a message id, enable developer mode in Discord's\n"
114
+ " settings, 'appearance' tab. Then right click a message\n"
115
+ " and copy its id.\n"
116
+ " Replying to a message will cleanup all messages before it.\n\n"
117
+ " **Arguments:**\n\n"
118
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
119
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
120
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
121
+ " "
122
+ msgstr "Belirtilen mesajdan önceki X adet mesajı siler.\n\n"
123
+ " Bir mesaj idsi edinmek için Discord ayarlarına girip\n"
124
+ " \"görünüm\" sekmesinden geliştirici modunu açın.\n"
125
+ " Sonra bir mesaja sağ tıklayıp idsini kopyalayın.\n\n"
126
+ " **Seçenekler:**\n\n"
127
+ " - `<mesaj_idsi>` Öncesindeki mesajlar silinecek olan mesajın Idsi. Bu mesajın kendisi silinmez.\n"
128
+ " - `<sayı>` Silinecek mesaj sayısı, pozitif bir tam sayı olmak zorundadır.\n"
129
+ " - `<sabit_silme>` Sabit mesajların silinip silinmeyeceği. Varsayılan olarak kapalıdır. (False)\n"
130
+ " "
131
+
132
+ #: redbot/cogs/cleanup/cleanup.py:390
133
+ #, docstring
134
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
135
+ " The first message ID should be the older message and the second one the newer.\n\n"
136
+ " Example:\n"
137
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
138
+ " **Arguments:**\n\n"
139
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
140
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
141
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
142
+ " "
143
+ msgstr "IDleri verilen iki mesaj arasındaki mesajları siler.\n\n"
144
+ " İlk mesaj IDsi temizliğin başlangıç noktasını, ikinci mesaj IDsi ise bitiş noktasını belirtmelidir.\n\n"
145
+ " Örnek:\n"
146
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
147
+ " **Seçenekler:**\n\n"
148
+ " - `<bir>` Sonrasındaki mesajlar silinecek olan mesajın IDsi. Bu mesajın kendisi silinmez.\n"
149
+ " - `<iki>` Öncesindeki mesajlar silinecek olan mesajın IDsi. Bu mesajın kendisi silinmez.\n"
150
+ " - `<sabit_silme>` Sabit mesajların silinip silinmeyeceği. Varsayılan olarak kapalıdır. (False)\n"
151
+ " "
152
+
153
+ #: redbot/cogs/cleanup/cleanup.py:438
154
+ #, docstring
155
+ msgid "Delete the last X messages in the current channel.\n\n"
156
+ " Example:\n"
157
+ " - `[p]cleanup messages 26`\n\n"
158
+ " **Arguments:**\n\n"
159
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
160
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
161
+ " "
162
+ msgstr "Şu anki kanalda bulunan son X mesajı siler.\n\n"
163
+ " Örnek:\n"
164
+ " - `[p]cleanup messages 26`\n\n"
165
+ " **Seçenekler:**\n\n"
166
+ " - `<rakam>` Maksimum kaç mesaj silineceği, pozitif tam sayı olmak zorundadır.\n"
167
+ " - `<sabit_silme>` Sabitlenmiş mesajların silinip silinmeyeceği, varsayılan olarak silinmezler (False)\n"
168
+ " "
169
+
170
+ #: redbot/cogs/cleanup/cleanup.py:476
171
+ #, docstring
172
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
173
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
174
+ " **Arguments:**\n\n"
175
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
176
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
177
+ " "
178
+ msgstr "Botun şu anki kanala göndermiş olduğu mesajları ve komut yanıtlarını siler.\n\n"
179
+ " Customcom veya alias ile oluşturulmuş komutların yanıtları, sadece cog yüklüyse silinir.\n\n"
180
+ " **Seçenekler:**\n\n"
181
+ " - `<rakam>` Maksimum kaç mesaj silineceği, pozitif tam sayı olmak zorundadır.\n"
182
+ " - `<sabit_silme>` Sabitlenmiş mesajların silinip silinmeyeceği, varsayılan olarak silinmezler (False)\n"
183
+ " "
184
+
185
+ #: redbot/cogs/cleanup/cleanup.py:564
186
+ #, docstring
187
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
188
+ " By default, all messages are cleaned. If a second argument is specified,\n"
189
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
190
+ " Examples:\n"
191
+ " - `[p]cleanup self 6`\n"
192
+ " - `[p]cleanup self 10 Pong`\n"
193
+ " - `[p]cleanup self 7 \"\" True`\n\n"
194
+ " **Arguments:**\n\n"
195
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
196
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
197
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
198
+ " "
199
+ msgstr "Şu anki kanalda bota ait olan mesajları siler.\n\n"
200
+ " Varsayılan olarak bütün mesajlar silinir. Eğer ikinci seçenek olarak komuta herhangi bir şey verilirse, eşleştirme yapılır ve sadece verilen yazıyı içeren mesajlar silinir.\n\n"
201
+ " Örnekler:\n"
202
+ " - `[p]cleanup self 6`\n"
203
+ " - `[p]cleanup self 10 Pong`\n"
204
+ " - `[p]cleanup self 7 \"\" True`\n\n"
205
+ " **Seçenekler:**\n\n\n"
206
+ " - `<rakam>` Maksimum kaç mesaj silineceği, pozitif tam sayı olmak zorundadır.\n"
207
+ " - `<eşleştirme>` Bir mesajın silinmesi için bulundurması gereken yazı, eğer bunu atlamak isterseniz \"\" (iki tane çift tırnak) kullanın.\n"
208
+ " - `<sabit_silme>` Sabitlenmiş mesajların silinip silinmeyeceği, varsayılan olarak silinmezler (False)\n"
209
+ " "
210
+
211
+ #: redbot/cogs/cleanup/cleanup.py:650
212
+ #, docstring
213
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
214
+ " Defaults to 50.\n\n"
215
+ " **Arguments:**\n\n"
216
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
217
+ " "
218
+ msgstr "Son X mesajdan aynı olanları siler ve sadece bir tanesini bırakır.\n\n"
219
+ " Varsayılan olarak 50.\n\n"
220
+ " **Seçenekler:**\n\n"
221
+ " - `<number>` Aynıları için denetlenecek mesaj sayısı, pozitif tam sayı olmak zorundadır.\n"
222
+ " "
223
+
224
+ #: redbot/cogs/cleanup/converters.py:17
225
+ msgid "{} doesn't look like a valid message ID."
226
+ msgstr "{} geçersiz mesaj ID'si."
227
+
228
+ #: redbot/cogs/cleanup/converters.py:29
229
+ msgid "{arg} is not an integer."
230
+ msgstr "{arg} tamsayı değil."
231
+
232
+ #: redbot/cogs/cleanup/converters.py:31
233
+ msgid "{arg} is not a positive integer."
234
+ msgstr "{arg} pozitif bir tamsayı değil."
235
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/uk-UA.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Ukrainian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=((n%10==1 && n%100!=11) ? 0 : ((n%10 >= 2 && n%10 <=4 && (n%100 < 12 || n%100 > 14)) ? 1 : ((n%10 == 0 || (n%10 >= 5 && n%10 <=9)) || (n%100 >= 11 && n%100 <= 14)) ? 2 : 3));\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: uk\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: uk_UA\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/vi-VN.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Vietnamese\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: vi\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: vi_VN\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-CN.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Chinese Simplified\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: zh-CN\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: zh_CN\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-HK.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Chinese Traditional, Hong Kong\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: zh-HK\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: zh_HK\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr ""
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr ""
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/cleanup/locales/zh-TW.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-05-23 14:25+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Chinese Traditional\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: zh-TW\n"
15
+ "X-Crowdin-File-ID: 31\n"
16
+ "Language: zh_TW\n"
17
+
18
+ #: redbot/cogs/cleanup/cleanup.py:23
19
+ #, docstring
20
+ msgid "This cog contains commands used for \"cleaning up\" (deleting) messages.\n\n"
21
+ " This is designed as a moderator tool and offers many convenient use cases.\n"
22
+ " All cleanup commands only apply to the channel the command is executed in.\n\n"
23
+ " Messages older than two weeks cannot be mass deleted.\n"
24
+ " This is a limitation of the API.\n"
25
+ " "
26
+ msgstr ""
27
+
28
+ #: redbot/cogs/cleanup/cleanup.py:54
29
+ msgid "Are you sure you want to delete {number} messages? (y/n)"
30
+ msgstr "您確定要刪除{number}則訊息嗎? (y/n)"
31
+
32
+ #: redbot/cogs/cleanup/cleanup.py:68
33
+ msgid "Cancelled."
34
+ msgstr "已取消。"
35
+
36
+ #: redbot/cogs/cleanup/cleanup.py:144
37
+ #, docstring
38
+ msgid "Base command for deleting messages."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/cleanup/cleanup.py:154
42
+ #, docstring
43
+ msgid "Delete the last X messages matching the specified text in the current channel.\n\n"
44
+ " Example:\n"
45
+ " - `[p]cleanup text \"test\" 5`\n\n"
46
+ " Remember to use double quotes.\n\n"
47
+ " **Arguments:**\n\n"
48
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
49
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/cleanup/cleanup.py:209
54
+ #, docstring
55
+ msgid "Delete the last X messages from a specified user in the current channel.\n\n"
56
+ " Examples:\n"
57
+ " - `[p]cleanup user @Twentysix 2`\n"
58
+ " - `[p]cleanup user Red 6`\n\n"
59
+ " **Arguments:**\n\n"
60
+ " - `<user>` The user whose messages are to be cleaned up.\n"
61
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
62
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
63
+ " "
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/cleanup/cleanup.py:282
67
+ #, docstring
68
+ msgid "Delete all messages after a specified message.\n\n"
69
+ " To get a message id, enable developer mode in Discord's\n"
70
+ " settings, 'appearance' tab. Then right click a message\n"
71
+ " and copy its id.\n"
72
+ " Replying to a message will cleanup all messages after it.\n\n"
73
+ " **Arguments:**\n\n"
74
+ " - `<message_id>` The id of the message to cleanup after. This message won't be deleted.\n"
75
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
76
+ " "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/cleanup/cleanup.py:303 redbot/cogs/cleanup/cleanup.py:357
80
+ msgid "Message not found."
81
+ msgstr "未找到訊息。"
82
+
83
+ #: redbot/cogs/cleanup/cleanup.py:335
84
+ #, docstring
85
+ msgid "Deletes X messages before the specified message.\n\n"
86
+ " To get a message id, enable developer mode in Discord's\n"
87
+ " settings, 'appearance' tab. Then right click a message\n"
88
+ " and copy its id.\n"
89
+ " Replying to a message will cleanup all messages before it.\n\n"
90
+ " **Arguments:**\n\n"
91
+ " - `<message_id>` The id of the message to cleanup before. This message won't be deleted.\n"
92
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
93
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
94
+ " "
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/cleanup/cleanup.py:390
98
+ #, docstring
99
+ msgid "Delete the messages between Message One and Message Two, providing the messages IDs.\n\n"
100
+ " The first message ID should be the older message and the second one the newer.\n\n"
101
+ " Example:\n"
102
+ " - `[p]cleanup between 123456789123456789 987654321987654321`\n\n"
103
+ " **Arguments:**\n\n"
104
+ " - `<one>` The id of the message to cleanup after. This message won't be deleted.\n"
105
+ " - `<two>` The id of the message to cleanup before. This message won't be deleted.\n"
106
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
107
+ " "
108
+ msgstr ""
109
+
110
+ #: redbot/cogs/cleanup/cleanup.py:438
111
+ #, docstring
112
+ msgid "Delete the last X messages in the current channel.\n\n"
113
+ " Example:\n"
114
+ " - `[p]cleanup messages 26`\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
117
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/cleanup/cleanup.py:476
122
+ #, docstring
123
+ msgid "Clean up command messages and messages from the bot in the current channel.\n\n"
124
+ " Can only cleanup custom commands and alias commands if those cogs are loaded.\n\n"
125
+ " **Arguments:**\n\n"
126
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
127
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
128
+ " "
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/cleanup/cleanup.py:564
132
+ #, docstring
133
+ msgid "Clean up messages owned by the bot in the current channel.\n\n"
134
+ " By default, all messages are cleaned. If a second argument is specified,\n"
135
+ " it is used for pattern matching - only messages containing the given text will be deleted.\n\n"
136
+ " Examples:\n"
137
+ " - `[p]cleanup self 6`\n"
138
+ " - `[p]cleanup self 10 Pong`\n"
139
+ " - `[p]cleanup self 7 \"\" True`\n\n"
140
+ " **Arguments:**\n\n"
141
+ " - `<number>` The max number of messages to cleanup. Must be a positive integer.\n"
142
+ " - `<match_pattern>` The text that messages must contain to be deleted. Use \"\" to skip this.\n"
143
+ " - `<delete_pinned>` Whether to delete pinned messages or not. Defaults to False\n"
144
+ " "
145
+ msgstr ""
146
+
147
+ #: redbot/cogs/cleanup/cleanup.py:650
148
+ #, docstring
149
+ msgid "Deletes duplicate messages in the channel from the last X messages and keeps only one copy.\n\n"
150
+ " Defaults to 50.\n\n"
151
+ " **Arguments:**\n\n"
152
+ " - `<number>` The number of messages to check for duplicates. Must be a positive integer.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/cleanup/converters.py:17
157
+ msgid "{} doesn't look like a valid message ID."
158
+ msgstr "{}看起來不是有效的訊息ID。"
159
+
160
+ #: redbot/cogs/cleanup/converters.py:29
161
+ msgid "{arg} is not an integer."
162
+ msgstr ""
163
+
164
+ #: redbot/cogs/cleanup/converters.py:31
165
+ msgid "{arg} is not a positive integer."
166
+ msgstr ""
167
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/__init__.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from redbot.core.bot import Red
2
+
3
+ from .customcom import CustomCommands
4
+
5
+
6
+ async def setup(bot: Red) -> None:
7
+ await bot.add_cog(CustomCommands(bot))
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/customcom.py ADDED
@@ -0,0 +1,880 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import asyncio
2
+ import re
3
+ import random
4
+ from datetime import datetime, timedelta
5
+ from inspect import Parameter
6
+ from typing import Iterable, List, Mapping, Tuple, Dict, Set, Literal, Union
7
+ from urllib.parse import quote_plus
8
+
9
+ import discord
10
+ from rapidfuzz import process
11
+
12
+ from redbot.core import Config, commands
13
+ from redbot.core.i18n import Translator, cog_i18n
14
+ from redbot.core.utils import menus, AsyncIter
15
+ from redbot.core.utils.chat_formatting import box, pagify, escape, humanize_list
16
+ from redbot.core.utils.predicates import MessagePredicate
17
+
18
+ _ = Translator("CustomCommands", __file__)
19
+
20
+
21
+ class CCError(Exception):
22
+ pass
23
+
24
+
25
+ class AlreadyExists(CCError):
26
+ pass
27
+
28
+
29
+ class ArgParseError(CCError):
30
+ pass
31
+
32
+
33
+ class NotFound(CCError):
34
+ pass
35
+
36
+
37
+ class OnCooldown(CCError):
38
+ pass
39
+
40
+
41
+ class CommandNotEdited(CCError):
42
+ pass
43
+
44
+
45
+ class ResponseTooLong(CCError):
46
+ pass
47
+
48
+
49
+ class CommandObj:
50
+ def __init__(self, **kwargs):
51
+ self.config = kwargs.get("config")
52
+ self.bot = kwargs.get("bot")
53
+ self.db = self.config.guild
54
+
55
+ @staticmethod
56
+ async def get_commands(config) -> dict:
57
+ _commands = await config.commands()
58
+ return {k: v for k, v in _commands.items() if _commands[k]}
59
+
60
+ async def redact_author_ids(self, user_id: int):
61
+ all_guilds = await self.config.all_guilds()
62
+
63
+ for guild_id in all_guilds.keys():
64
+ await asyncio.sleep(0)
65
+ async with self.config.guild_from_id(guild_id).commands() as all_commands:
66
+ async for com_name, com_info in AsyncIter(all_commands.items(), steps=100):
67
+ if not com_info:
68
+ continue
69
+
70
+ if com_info.get("author", {}).get("id", 0) == user_id:
71
+ com_info["author"]["id"] = 0xDE1
72
+ com_info["author"]["name"] = "Deleted User"
73
+
74
+ if editors := com_info.get("editors", None):
75
+ for index, editor_id in enumerate(editors):
76
+ if editor_id == user_id:
77
+ editors[index] = 0xDE1
78
+
79
+ async def get_responses(self, ctx):
80
+ intro = _(
81
+ "Welcome to the interactive random {cc} maker!\n"
82
+ "Every message you send will be added as one of the random "
83
+ "responses to choose from once this {cc} is "
84
+ "triggered. To exit this interactive menu, type `{quit}`"
85
+ ).format(cc="customcommand", quit="exit()")
86
+ await ctx.send(intro)
87
+
88
+ responses = []
89
+ args = None
90
+ while True:
91
+ await ctx.send(_("Add a random response:"))
92
+ msg = await self.bot.wait_for("message", check=MessagePredicate.same_context(ctx))
93
+
94
+ if msg.content.lower() == "exit()":
95
+ break
96
+ elif len(msg.content) > 2000:
97
+ await ctx.send(
98
+ _(
99
+ "The text response you're trying to create has more than 2000 characters.\n"
100
+ "I cannot send messages that are longer than 2000 characters, please try again."
101
+ )
102
+ )
103
+ continue
104
+ else:
105
+ try:
106
+ this_args = ctx.cog.prepare_args(msg.content)
107
+ except ArgParseError as e:
108
+ await ctx.send(e.args[0])
109
+ continue
110
+ if args and args != this_args:
111
+ await ctx.send(_("Random responses must take the same arguments!"))
112
+ continue
113
+ args = args or this_args
114
+ responses.append(msg.content)
115
+ return responses
116
+
117
+ @staticmethod
118
+ def get_now() -> str:
119
+ # Get current time as a string, for 'created_at' and 'edited_at' fields
120
+ # in the ccinfo dict
121
+ return "{:%d/%m/%Y %H:%M:%S}".format(datetime.utcnow())
122
+
123
+ async def get(self, message: discord.Message, command: str) -> Tuple[str, Dict]:
124
+ if not command:
125
+ raise NotFound()
126
+ ccinfo = await self.db(message.guild).commands.get_raw(command, default=None)
127
+ if not ccinfo:
128
+ raise NotFound()
129
+ else:
130
+ return ccinfo["response"], ccinfo.get("cooldowns", {})
131
+
132
+ async def get_full(self, message: discord.Message, command: str) -> Dict:
133
+ ccinfo = await self.db(message.guild).commands.get_raw(command, default=None)
134
+ if ccinfo:
135
+ return ccinfo
136
+ else:
137
+ raise NotFound()
138
+
139
+ async def create(
140
+ self, ctx: commands.Context, command: str, *, response: Union[str, List[str]]
141
+ ):
142
+ """Create a custom command"""
143
+ # Check if this command is already registered as a customcommand
144
+ if await self.db(ctx.guild).commands.get_raw(command, default=None):
145
+ raise AlreadyExists()
146
+ # Check against those pesky nitro users!
147
+ if isinstance(response, str) and len(response) > 2000:
148
+ raise ResponseTooLong()
149
+ elif isinstance(response, list) and any([len(i) > 2000 for i in response]):
150
+ raise ResponseTooLong()
151
+ # test to raise
152
+ ctx.cog.prepare_args(response if isinstance(response, str) else response[0])
153
+ author = ctx.message.author
154
+ ccinfo = {
155
+ "author": {"id": author.id, "name": str(author)},
156
+ "command": command,
157
+ "cooldowns": {},
158
+ "created_at": self.get_now(),
159
+ "editors": [],
160
+ "response": response,
161
+ }
162
+ await self.db(ctx.guild).commands.set_raw(command, value=ccinfo)
163
+
164
+ async def edit(
165
+ self,
166
+ ctx: commands.Context,
167
+ command: str,
168
+ *,
169
+ response=None,
170
+ cooldowns: Mapping[str, int] = None,
171
+ ask_for: bool = True,
172
+ ):
173
+ """Edit an already existing custom command"""
174
+ ccinfo = await self.db(ctx.guild).commands.get_raw(command, default=None)
175
+
176
+ # Check if this command is registered
177
+ if not ccinfo:
178
+ raise NotFound()
179
+
180
+ author = ctx.message.author
181
+
182
+ if ask_for and not response:
183
+ await ctx.send(_("Do you want to create a 'randomized' custom command?") + " (yes/no)")
184
+
185
+ pred = MessagePredicate.yes_or_no(ctx)
186
+ try:
187
+ await self.bot.wait_for("message", check=pred, timeout=30)
188
+ except asyncio.TimeoutError:
189
+ await ctx.send(_("Response timed out, please try again later."))
190
+ raise CommandNotEdited()
191
+ if pred.result is True:
192
+ response = await self.get_responses(ctx=ctx)
193
+ else:
194
+ await ctx.send(_("What response do you want?"))
195
+ try:
196
+ resp = await self.bot.wait_for(
197
+ "message", check=MessagePredicate.same_context(ctx), timeout=180
198
+ )
199
+ except asyncio.TimeoutError:
200
+ await ctx.send(_("Response timed out, please try again later."))
201
+ raise CommandNotEdited()
202
+ response = resp.content
203
+
204
+ if response:
205
+ # test to raise
206
+ if len(response) > 2000:
207
+ raise ResponseTooLong()
208
+ ctx.cog.prepare_args(response if isinstance(response, str) else response[0])
209
+ ccinfo["response"] = response
210
+
211
+ if cooldowns:
212
+ ccinfo.setdefault("cooldowns", {}).update(cooldowns)
213
+ for key, value in ccinfo["cooldowns"].copy().items():
214
+ if value <= 0:
215
+ del ccinfo["cooldowns"][key]
216
+
217
+ if author.id not in ccinfo["editors"]:
218
+ # Add the person who invoked the `edit` coroutine to the list of
219
+ # editors, if the person is not yet in there
220
+ ccinfo["editors"].append(author.id)
221
+
222
+ ccinfo["edited_at"] = self.get_now()
223
+
224
+ await self.db(ctx.guild).commands.set_raw(command, value=ccinfo)
225
+
226
+ async def delete(self, ctx: commands.Context, command: str):
227
+ """Delete an already existing custom command"""
228
+ # Check if this command is registered
229
+ if not await self.db(ctx.guild).commands.get_raw(command, default=None):
230
+ raise NotFound()
231
+ await self.db(ctx.guild).commands.set_raw(command, value=None)
232
+
233
+
234
+ @cog_i18n(_)
235
+ class CustomCommands(commands.Cog):
236
+ """This cog contains commands for creating and managing custom commands that display text.
237
+
238
+ These are useful for storing information members might need, like FAQ answers or invite links.
239
+ Custom commands can be used by anyone by default, so be careful with pings.
240
+ Commands can only be lowercase, and will not respond to any uppercase letters.
241
+ """
242
+
243
+ def __init__(self, bot):
244
+ super().__init__()
245
+ self.bot = bot
246
+ self.key = 414589031223512
247
+ self.config = Config.get_conf(self, self.key)
248
+ self.config.register_guild(commands={})
249
+ self.commandobj = CommandObj(config=self.config, bot=self.bot)
250
+ self.cooldowns = {}
251
+
252
+ async def red_delete_data_for_user(
253
+ self,
254
+ *,
255
+ requester: Literal["discord_deleted_user", "owner", "user", "user_strict"],
256
+ user_id: int,
257
+ ):
258
+ if requester != "discord_deleted_user":
259
+ return
260
+
261
+ await self.commandobj.redact_author_ids(user_id)
262
+
263
+ @commands.group(aliases=["cc"])
264
+ @commands.guild_only()
265
+ async def customcom(self, ctx: commands.Context):
266
+ """Base command for Custom Commands management."""
267
+ pass
268
+
269
+ @customcom.command(name="raw")
270
+ async def cc_raw(self, ctx: commands.Context, command: str.lower):
271
+ """Get the raw response of a custom command, to get the proper markdown.
272
+
273
+ This is helpful for copy and pasting.
274
+
275
+ **Arguments:**
276
+
277
+ - `<command>` The custom command to get the raw response of."""
278
+ commands = await self.config.guild(ctx.guild).commands()
279
+ if command not in commands:
280
+ return await ctx.send("That command doesn't exist.")
281
+ command = commands[command]
282
+ if isinstance(command["response"], str):
283
+ raw = discord.utils.escape_markdown(command["response"])
284
+ if len(raw) > 2000:
285
+ raw = f"{raw[:1997]}..."
286
+ await ctx.send(raw)
287
+ else:
288
+ msglist = []
289
+ if await ctx.embed_requested():
290
+ colour = await ctx.embed_colour()
291
+ for number, response in enumerate(command["response"], start=1):
292
+ raw = discord.utils.escape_markdown(response)
293
+ if len(raw) > 2048:
294
+ raw = f"{raw[:2045]}..."
295
+ embed = discord.Embed(
296
+ title=_("Response #{num}/{total}").format(
297
+ num=number, total=len(command["response"])
298
+ ),
299
+ description=raw,
300
+ colour=colour,
301
+ )
302
+ msglist.append(embed)
303
+ else:
304
+ for number, response in enumerate(command["response"], start=1):
305
+ raw = discord.utils.escape_markdown(response)
306
+ msg = _("Response #{num}/{total}:\n{raw}").format(
307
+ num=number, total=len(command["response"]), raw=raw
308
+ )
309
+ if len(msg) > 2000:
310
+ msg = f"{msg[:1997]}..."
311
+ msglist.append(msg)
312
+ await menus.menu(ctx, msglist)
313
+
314
+ @customcom.command(name="search")
315
+ @commands.guild_only()
316
+ async def cc_search(self, ctx: commands.Context, *, query):
317
+ """
318
+ Searches through custom commands, according to the query.
319
+
320
+ Uses fuzzy searching to find close matches.
321
+
322
+ **Arguments:**
323
+
324
+ - `<query>` The query to search for. Can be multiple words.
325
+ """
326
+ cc_commands = await CommandObj.get_commands(self.config.guild(ctx.guild))
327
+ extracted = process.extract(query, list(cc_commands.keys()))
328
+ accepted = []
329
+ for key, score, __ in extracted:
330
+ if score > 60:
331
+ # Match was decently strong
332
+ accepted.append((key, cc_commands[key]))
333
+ else:
334
+ # Match wasn't strong enough
335
+ pass
336
+ if len(accepted) == 0:
337
+ return await ctx.send(_("No close matches were found."))
338
+ results = self.prepare_command_list(ctx, accepted)
339
+ if await ctx.embed_requested():
340
+ content = " \n".join(map("**{0[0]}** {0[1]}".format, results))
341
+ embed = discord.Embed(
342
+ title=_("Search results"), description=content, colour=await ctx.embed_colour()
343
+ )
344
+ await ctx.send(embed=embed)
345
+ else:
346
+ content = "\n".join(map("{0[0]:<12} : {0[1]}".format, results))
347
+ await ctx.send(_("The following matches have been found:") + box(content))
348
+
349
+ @customcom.group(name="create", aliases=["add"], invoke_without_command=True)
350
+ @commands.mod_or_permissions(administrator=True)
351
+ async def cc_create(self, ctx: commands.Context, command: str.lower, *, text: str):
352
+ """Create custom commands.
353
+
354
+ If a type is not specified, a simple CC will be created.
355
+ CCs can be enhanced with arguments, see the guide
356
+ [here](https://docs.discord.red/en/stable/cog_customcom.html).
357
+ """
358
+ await ctx.invoke(self.cc_create_simple, command=command, text=text)
359
+
360
+ @cc_create.command(name="random")
361
+ @commands.mod_or_permissions(administrator=True)
362
+ async def cc_create_random(self, ctx: commands.Context, command: str.lower):
363
+ """Create a CC where it will randomly choose a response!
364
+
365
+ Note: This command is interactive.
366
+
367
+ **Arguments:**
368
+
369
+ - `<command>` The command executed to return the text. Cast to lowercase.
370
+ """
371
+ if any(char.isspace() for char in command):
372
+ # Haha, nice try
373
+ await ctx.send(_("Custom command names cannot have spaces in them."))
374
+ return
375
+ if command in (*self.bot.all_commands, *commands.RESERVED_COMMAND_NAMES):
376
+ await ctx.send(_("There already exists a bot command with the same name."))
377
+ return
378
+ responses = await self.commandobj.get_responses(ctx=ctx)
379
+ if not responses:
380
+ await ctx.send(_("Custom command process cancelled."))
381
+ return
382
+ try:
383
+ await self.commandobj.create(ctx=ctx, command=command, response=responses)
384
+ await ctx.send(_("Custom command successfully added."))
385
+ except AlreadyExists:
386
+ await ctx.send(
387
+ _("This command already exists. Use `{command}` to edit it.").format(
388
+ command=f"{ctx.clean_prefix}customcom edit"
389
+ )
390
+ )
391
+ except ResponseTooLong: # This isn't needed, however may be a good idea to keep this.
392
+ await ctx.send(
393
+ _(
394
+ "The text response you're trying to create has more than 2000 characters.\n"
395
+ "I cannot send messages that are longer than 2000 characters."
396
+ )
397
+ )
398
+
399
+ @cc_create.command(name="simple")
400
+ @commands.mod_or_permissions(administrator=True)
401
+ async def cc_create_simple(self, ctx, command: str.lower, *, text: str):
402
+ """Add a simple custom command.
403
+
404
+ Example:
405
+ - `[p]customcom create simple yourcommand Text you want`
406
+
407
+ **Arguments:**
408
+
409
+ - `<command>` The command executed to return the text. Cast to lowercase.
410
+ - `<text>` The text to return when executing the command. See guide for enhanced usage.
411
+ """
412
+ if any(char.isspace() for char in command):
413
+ # Haha, nice try
414
+ await ctx.send(_("Custom command names cannot have spaces in them."))
415
+ return
416
+ if command in (*self.bot.all_commands, *commands.RESERVED_COMMAND_NAMES):
417
+ await ctx.send(_("There already exists a bot command with the same name."))
418
+ return
419
+ try:
420
+ await self.commandobj.create(ctx=ctx, command=command, response=text)
421
+ await ctx.send(_("Custom command successfully added."))
422
+ except AlreadyExists:
423
+ await ctx.send(
424
+ _("This command already exists. Use `{command}` to edit it.").format(
425
+ command=f"{ctx.clean_prefix}customcom edit"
426
+ )
427
+ )
428
+ except ArgParseError as e:
429
+ await ctx.send(e.args[0])
430
+ except ResponseTooLong:
431
+ await ctx.send(
432
+ _(
433
+ "The text response you're trying to create has more than 2000 characters.\n"
434
+ "I cannot send messages that are longer than 2000 characters."
435
+ )
436
+ )
437
+
438
+ @customcom.command(name="cooldown")
439
+ @commands.mod_or_permissions(administrator=True)
440
+ async def cc_cooldown(
441
+ self, ctx, command: str.lower, cooldown: int = None, *, per: str.lower = "member"
442
+ ):
443
+ """Set, edit, or view the cooldown for a custom command.
444
+
445
+ You may set cooldowns per member, channel, or guild. Multiple
446
+ cooldowns may be set. All cooldowns must be cooled to call the
447
+ custom command.
448
+
449
+ Examples:
450
+ - `[p]customcom cooldown pingrole`
451
+ - `[p]customcom cooldown yourcommand 30`
452
+ - `[p]cc cooldown mycommand 30 guild`
453
+
454
+ **Arguments:**
455
+
456
+ - `<command>` The custom command to check or set the cooldown.
457
+ - `[cooldown]` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.
458
+ - `[per]` The group to apply the cooldown on. Defaults to per member. Valid choices are server / guild, user / member, and channel.
459
+ """
460
+ if cooldown is None:
461
+ try:
462
+ cooldowns = (await self.commandobj.get(ctx.message, command))[1]
463
+ except NotFound:
464
+ return await ctx.send(_("That command doesn't exist."))
465
+ if cooldowns:
466
+ cooldown = []
467
+ for per, rate in cooldowns.items():
468
+ cooldown.append(
469
+ _("A {} may call this command every {} seconds").format(per, rate)
470
+ )
471
+ return await ctx.send("\n".join(cooldown))
472
+ else:
473
+ return await ctx.send(_("This command has no cooldown."))
474
+ per = {"server": "guild", "user": "member"}.get(per, per)
475
+ allowed = ("guild", "member", "channel")
476
+ if per not in allowed:
477
+ return await ctx.send(_("{} must be one of {}").format("per", ", ".join(allowed)))
478
+ cooldown = {per: cooldown}
479
+ try:
480
+ await self.commandobj.edit(ctx=ctx, command=command, cooldowns=cooldown, ask_for=False)
481
+ await ctx.send(_("Custom command cooldown successfully edited."))
482
+ except NotFound:
483
+ await ctx.send(
484
+ _("That command doesn't exist. Use `{command}` to add it.").format(
485
+ command=f"{ctx.clean_prefix}customcom create"
486
+ )
487
+ )
488
+
489
+ @customcom.command(name="delete", aliases=["del", "remove"])
490
+ @commands.mod_or_permissions(administrator=True)
491
+ async def cc_delete(self, ctx, command: str.lower):
492
+ """Delete a custom command.
493
+
494
+ Example:
495
+ - `[p]customcom delete yourcommand`
496
+
497
+ **Arguments:**
498
+
499
+ - `<command>` The custom command to delete.
500
+ """
501
+ try:
502
+ await self.commandobj.delete(ctx=ctx, command=command)
503
+ await ctx.send(_("Custom command successfully deleted."))
504
+ except NotFound:
505
+ await ctx.send(_("That command doesn't exist."))
506
+
507
+ @customcom.command(name="edit")
508
+ @commands.mod_or_permissions(administrator=True)
509
+ async def cc_edit(self, ctx, command: str.lower, *, text: str = None):
510
+ """Edit a custom command.
511
+
512
+ Example:
513
+ - `[p]customcom edit yourcommand Text you want`
514
+
515
+ **Arguments:**
516
+
517
+ - `<command>` The custom command to edit.
518
+ - `<text>` The new text to return when executing the command.
519
+ """
520
+ try:
521
+ await self.commandobj.edit(ctx=ctx, command=command, response=text)
522
+ await ctx.send(_("Custom command successfully edited."))
523
+ except NotFound:
524
+ await ctx.send(
525
+ _("That command doesn't exist. Use `{command}` to add it.").format(
526
+ command=f"{ctx.clean_prefix}customcom create"
527
+ )
528
+ )
529
+ except ArgParseError as e:
530
+ await ctx.send(e.args[0])
531
+ except CommandNotEdited:
532
+ pass
533
+ except ResponseTooLong:
534
+ await ctx.send(
535
+ _(
536
+ "The text response you're trying to create has more than 2000 characters.\n"
537
+ "I cannot send messages that are longer than 2000 characters."
538
+ )
539
+ )
540
+
541
+ @customcom.command(name="list")
542
+ @commands.bot_can_react()
543
+ async def cc_list(self, ctx: commands.Context):
544
+ """List all available custom commands.
545
+
546
+ The list displays a preview of each command's response, with
547
+ markdown escaped and newlines replaced with spaces.
548
+ """
549
+ cc_dict = await CommandObj.get_commands(self.config.guild(ctx.guild))
550
+
551
+ if not cc_dict:
552
+ await ctx.send(
553
+ _(
554
+ "There are no custom commands in this server."
555
+ " Use `{command}` to start adding some."
556
+ ).format(command=f"{ctx.clean_prefix}customcom create")
557
+ )
558
+ return
559
+
560
+ results = self.prepare_command_list(ctx, sorted(cc_dict.items(), key=lambda t: t[0]))
561
+
562
+ if await ctx.embed_requested():
563
+ # We need a space before the newline incase the CC preview ends in link (GH-2295)
564
+ content = " \n".join(map("**{0[0]}** {0[1]}".format, results))
565
+ pages = list(pagify(content, page_length=1024))
566
+ embed_pages = []
567
+ for idx, page in enumerate(pages, start=1):
568
+ embed = discord.Embed(
569
+ title=_("Custom Command List"),
570
+ description=page,
571
+ colour=await ctx.embed_colour(),
572
+ )
573
+ embed.set_footer(text=_("Page {num}/{total}").format(num=idx, total=len(pages)))
574
+ embed_pages.append(embed)
575
+ await menus.menu(ctx, embed_pages)
576
+ else:
577
+ content = "\n".join(map("{0[0]:<12} : {0[1]}".format, results))
578
+ pages = list(map(box, pagify(content, page_length=2000, shorten_by=10)))
579
+ await menus.menu(ctx, pages)
580
+
581
+ @customcom.command(name="show")
582
+ async def cc_show(self, ctx, command_name: str):
583
+ """Shows a custom command's responses and its settings.
584
+
585
+ **Arguments:**
586
+
587
+ - `<command_name>` The custom command to show.
588
+ """
589
+
590
+ try:
591
+ cmd = await self.commandobj.get_full(ctx.message, command_name)
592
+ except NotFound:
593
+ await ctx.send(_("I could not not find that custom command."))
594
+ return
595
+
596
+ responses = cmd["response"]
597
+
598
+ if isinstance(responses, str):
599
+ responses = [responses]
600
+
601
+ _aid = cmd["author"]["id"]
602
+
603
+ if _aid == 0xDE1:
604
+ author = _("Deleted User")
605
+ elif member := ctx.guild.get_member(_aid):
606
+ author = f"{member} ({_aid})"
607
+ else:
608
+ author = f"{cmd['author']['name']} ({_aid})"
609
+
610
+ _type = _("Random") if len(responses) > 1 else _("Normal")
611
+
612
+ text = _(
613
+ "Command: {command_name}\n"
614
+ "Author: {author}\n"
615
+ "Created: {created_at}\n"
616
+ "Type: {type}\n"
617
+ ).format(
618
+ command_name=command_name, author=author, created_at=cmd["created_at"], type=_type
619
+ )
620
+
621
+ cooldowns = cmd.get("cooldowns", {})
622
+
623
+ if cooldowns:
624
+ cooldown_text = _("Cooldowns:\n")
625
+ for rate, per in cooldowns.items():
626
+ cooldown_text += _("{num} seconds per {period}\n").format(num=per, period=rate)
627
+ text += cooldown_text
628
+
629
+ text += _("Responses:\n")
630
+ responses = ["- " + r for r in responses]
631
+ text += "\n".join(responses)
632
+
633
+ for p in pagify(text):
634
+ await ctx.send(box(p, lang="yaml"))
635
+
636
+ @commands.Cog.listener()
637
+ async def on_message_without_command(self, message):
638
+ is_private = message.guild is None
639
+
640
+ # user_allowed check, will be replaced with self.bot.user_allowed or
641
+ # something similar once it's added
642
+ user_allowed = True
643
+
644
+ if isinstance(message.channel, discord.PartialMessageable):
645
+ return
646
+
647
+ if len(message.content) < 2 or is_private or not user_allowed or message.author.bot:
648
+ return
649
+
650
+ if await self.bot.cog_disabled_in_guild(self, message.guild):
651
+ return
652
+
653
+ ctx = await self.bot.get_context(message)
654
+
655
+ if ctx.prefix is None:
656
+ return
657
+
658
+ try:
659
+ raw_response, cooldowns = await self.commandobj.get(
660
+ message=message, command=ctx.invoked_with
661
+ )
662
+ if isinstance(raw_response, list):
663
+ raw_response = random.choice(raw_response)
664
+ elif isinstance(raw_response, str):
665
+ pass
666
+ else:
667
+ raise NotFound()
668
+ if cooldowns:
669
+ self.test_cooldowns(ctx, ctx.invoked_with, cooldowns)
670
+ except CCError:
671
+ return
672
+
673
+ # wrap the command here so it won't register with the bot
674
+ fake_cc = commands.command(name=ctx.invoked_with)(self.cc_callback)
675
+ fake_cc.params = self.prepare_args(raw_response)
676
+ fake_cc.requires.ready_event.set()
677
+ ctx.command = fake_cc
678
+
679
+ await self.bot.invoke(ctx)
680
+ if not ctx.command_failed:
681
+ await self.cc_command(*ctx.args, **ctx.kwargs, raw_response=raw_response)
682
+
683
+ async def cc_callback(self, *args, **kwargs) -> None:
684
+ """
685
+ Custom command.
686
+
687
+ Created via the CustomCom cog. See `[p]customcom` for more details.
688
+ """
689
+ # fake command to take advantage of discord.py's parsing and events
690
+ pass
691
+
692
+ async def cc_command(self, ctx, *cc_args, raw_response, **cc_kwargs) -> None:
693
+ cc_args = (*cc_args, *cc_kwargs.values())
694
+ results = re.findall(r"{([^}]+)\}", raw_response)
695
+ for result in results:
696
+ param = self.transform_parameter(result, ctx.message)
697
+ raw_response = raw_response.replace("{" + result + "}", param)
698
+ results = re.findall(r"{((\d+)[^.}]*(\.[^:}]+)?[^}]*)\}", raw_response)
699
+ if results:
700
+ low = min(int(result[1]) for result in results)
701
+ for result in results:
702
+ index = int(result[1]) - low
703
+ arg = self.transform_arg(result[0], result[2], cc_args[index])
704
+ raw_response = raw_response.replace("{" + result[0] + "}", arg)
705
+ await ctx.send(raw_response)
706
+
707
+ @staticmethod
708
+ def prepare_args(raw_response) -> Mapping[str, Parameter]:
709
+ args = re.findall(r"{(\d+)[^:}]*(:[^.}]*)?[^}]*\}", raw_response)
710
+ if not args:
711
+ return {}
712
+ allowed_builtins = {
713
+ "bool": bool,
714
+ "complex": complex,
715
+ "float": float,
716
+ "frozenset": frozenset,
717
+ "int": int,
718
+ "list": list,
719
+ "set": set,
720
+ "str": str,
721
+ "tuple": tuple,
722
+ "query": quote_plus,
723
+ }
724
+ indices = [int(a[0]) for a in args]
725
+ low = min(indices)
726
+ indices = [a - low for a in indices]
727
+ high = max(indices)
728
+ if high > 9:
729
+ raise ArgParseError(_("Too many arguments!"))
730
+ gaps = set(indices).symmetric_difference(range(high + 1))
731
+ if gaps:
732
+ raise ArgParseError(
733
+ _("Arguments must be sequential. Missing arguments: ")
734
+ + ", ".join(str(i + low) for i in gaps)
735
+ )
736
+ fin = [Parameter("_" + str(i), Parameter.POSITIONAL_OR_KEYWORD) for i in range(high + 1)]
737
+ for arg in args:
738
+ index = int(arg[0]) - low
739
+ anno_raw = arg[1][1:] # strip initial colon
740
+ if anno_raw.lower().endswith("converter"):
741
+ anno_raw = anno_raw[:-9]
742
+ if not anno_raw or anno_raw.startswith("_"): # public types only
743
+ name = "{}_{}".format("text", index if index < high else "final")
744
+ fin[index] = fin[index].replace(name=name)
745
+ continue
746
+ # allow type hinting only for discord.py and builtin types
747
+ try:
748
+ anno = getattr(discord, anno_raw)
749
+ # force an AttributeError if there's no discord.py converter
750
+ getattr(commands, anno.__name__ + "Converter")
751
+ except AttributeError:
752
+ anno = allowed_builtins.get(anno_raw.lower(), Parameter.empty)
753
+ if (
754
+ anno is not Parameter.empty
755
+ and fin[index].annotation is not Parameter.empty
756
+ and anno != fin[index].annotation
757
+ ):
758
+ raise ArgParseError(
759
+ _(
760
+ 'Conflicting colon notation for argument {index}: "{name1}" and "{name2}".'
761
+ ).format(
762
+ index=index + low,
763
+ name1=fin[index].annotation.__name__,
764
+ name2=anno.__name__,
765
+ )
766
+ )
767
+ if anno is not Parameter.empty:
768
+ fin[index] = fin[index].replace(annotation=anno)
769
+ # consume rest
770
+ fin[-1] = fin[-1].replace(kind=Parameter.KEYWORD_ONLY)
771
+ # name the parameters for the help text
772
+ for i, param in enumerate(fin):
773
+ anno = param.annotation
774
+ name = "{}_{}".format(
775
+ "text" if anno is Parameter.empty else anno.__name__.lower(),
776
+ i if i < high else "final",
777
+ )
778
+ fin[i] = fin[i].replace(name=name)
779
+ return dict((p.name, p) for p in fin)
780
+
781
+ def test_cooldowns(self, ctx, command, cooldowns):
782
+ now = datetime.utcnow()
783
+ new_cooldowns = {}
784
+ for per, rate in cooldowns.items():
785
+ if per == "guild":
786
+ key = (command, ctx.guild)
787
+ elif per == "channel":
788
+ key = (command, ctx.guild, ctx.channel)
789
+ elif per == "member":
790
+ key = (command, ctx.guild, ctx.author)
791
+ else:
792
+ raise ValueError(per)
793
+ cooldown = self.cooldowns.get(key)
794
+ if cooldown:
795
+ cooldown += timedelta(seconds=rate)
796
+ if cooldown > now:
797
+ raise OnCooldown()
798
+ new_cooldowns[key] = now
799
+ # only update cooldowns if the command isn't on cooldown
800
+ self.cooldowns.update(new_cooldowns)
801
+
802
+ @classmethod
803
+ def transform_arg(cls, result, attr, obj) -> str:
804
+ attr = attr[1:] # strip initial dot
805
+ if not attr:
806
+ return cls.maybe_humanize_list(obj)
807
+ raw_result = "{" + result + "}"
808
+ # forbid private members and nested attr lookups
809
+ if attr.startswith("_") or "." in attr:
810
+ return raw_result
811
+ return cls.maybe_humanize_list(getattr(obj, attr, raw_result))
812
+
813
+ @staticmethod
814
+ def maybe_humanize_list(thing) -> str:
815
+ if isinstance(thing, str):
816
+ return thing
817
+ try:
818
+ return humanize_list(list(map(str, thing)))
819
+ except TypeError:
820
+ return str(thing)
821
+
822
+ @staticmethod
823
+ def transform_parameter(result, message) -> str:
824
+ """
825
+ For security reasons only specific objects are allowed
826
+ Internals are ignored
827
+ """
828
+ raw_result = "{" + result + "}"
829
+ objects = {
830
+ "message": message,
831
+ "author": message.author,
832
+ "channel": message.channel,
833
+ "guild": message.guild,
834
+ "server": message.guild,
835
+ }
836
+ if result in objects:
837
+ return str(objects[result])
838
+ try:
839
+ first, second = result.split(".")
840
+ except ValueError:
841
+ return raw_result
842
+ if first in objects and not second.startswith("_"):
843
+ first = objects[first]
844
+ else:
845
+ return raw_result
846
+ return str(getattr(first, second, raw_result))
847
+
848
+ async def get_command_names(self, guild: discord.Guild) -> Set[str]:
849
+ """Get all custom command names in a guild.
850
+
851
+ Returns
852
+ --------
853
+ Set[str]
854
+ A set of all custom command names.
855
+
856
+ """
857
+ return set(await CommandObj.get_commands(self.config.guild(guild)))
858
+
859
+ @staticmethod
860
+ def prepare_command_list(
861
+ ctx: commands.Context, command_list: Iterable[Tuple[str, dict]]
862
+ ) -> List[Tuple[str, str]]:
863
+ results = []
864
+ for command, body in command_list:
865
+ responses = body["response"]
866
+ if isinstance(responses, list):
867
+ result = ", ".join(responses)
868
+ elif isinstance(responses, str):
869
+ result = responses
870
+ else:
871
+ continue
872
+ # Cut preview to 52 characters max
873
+ if len(result) > 52:
874
+ result = result[:49] + "..."
875
+ # Replace newlines with spaces
876
+ result = result.replace("\n", " ")
877
+ # Escape markdown and mass mentions
878
+ result = escape(result, formatting=True, mass_mentions=True)
879
+ results.append((f"{ctx.clean_prefix}{command}", result))
880
+ return results
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/af-ZA.po ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Afrikaans\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: af\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: af_ZA\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:89
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:101
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:166
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:172
36
+ #: redbot/cogs/customcom/customcom.py:183
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:177
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:217
45
+ #, docstring
46
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
47
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
48
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
49
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:247
54
+ #, docstring
55
+ msgid "Base command for Custom Commands management."
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:252
59
+ #, docstring
60
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
61
+ " This is helpful for copy and pasting.\n\n"
62
+ " **Arguments:**\n\n"
63
+ " - `<command>` The custom command to get the raw response of."
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/customcom/customcom.py:277
67
+ msgid "Response #{num}/{total}"
68
+ msgstr ""
69
+
70
+ #: redbot/cogs/customcom/customcom.py:287
71
+ msgid "Response #{num}/{total}:\n"
72
+ "{raw}"
73
+ msgstr ""
74
+
75
+ #: redbot/cogs/customcom/customcom.py:298
76
+ #, docstring
77
+ msgid "\n"
78
+ " Searches through custom commands, according to the query.\n\n"
79
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
80
+ " **Arguments:**\n\n"
81
+ " - `<query>` The query to search for. Can be multiple words.\n"
82
+ " "
83
+ msgstr ""
84
+
85
+ #: redbot/cogs/customcom/customcom.py:318
86
+ msgid "No close matches were found."
87
+ msgstr ""
88
+
89
+ #: redbot/cogs/customcom/customcom.py:323
90
+ msgid "Search results"
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:328
94
+ msgid "The following matches have been found:"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:333
98
+ #, docstring
99
+ msgid "Create custom commands.\n\n"
100
+ " If a type is not specified, a simple CC will be created.\n"
101
+ " CCs can be enhanced with arguments, see the guide\n"
102
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
103
+ " "
104
+ msgstr ""
105
+
106
+ #: redbot/cogs/customcom/customcom.py:344
107
+ #, docstring
108
+ msgid "Create a CC where it will randomly choose a response!\n\n"
109
+ " Note: This command is interactive.\n\n"
110
+ " **Arguments:**\n\n"
111
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/customcom/customcom.py:354
116
+ #: redbot/cogs/customcom/customcom.py:388
117
+ msgid "Custom command names cannot have spaces in them."
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:357
121
+ #: redbot/cogs/customcom/customcom.py:391
122
+ msgid "There already exists a bot command with the same name."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:361
126
+ msgid "Custom command process cancelled."
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/customcom/customcom.py:365
130
+ #: redbot/cogs/customcom/customcom.py:395
131
+ msgid "Custom command successfully added."
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/customcom/customcom.py:368
135
+ #: redbot/cogs/customcom/customcom.py:398
136
+ msgid "This command already exists. Use `{command}` to edit it."
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/customcom/customcom.py:376
140
+ #, docstring
141
+ msgid "Add a simple custom command.\n\n"
142
+ " Example:\n"
143
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
144
+ " **Arguments:**\n\n"
145
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
146
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
147
+ " "
148
+ msgstr ""
149
+
150
+ #: redbot/cogs/customcom/customcom.py:410
151
+ #, docstring
152
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
153
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
154
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
155
+ " custom command.\n\n"
156
+ " Examples:\n"
157
+ " - `[p]customcom cooldown pingrole`\n"
158
+ " - `[p]customcom cooldown yourcommand 30`\n"
159
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<command>` The custom command to check or set the cooldown.\n"
162
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
163
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
164
+ " "
165
+ msgstr ""
166
+
167
+ #: redbot/cogs/customcom/customcom.py:431
168
+ #: redbot/cogs/customcom/customcom.py:472
169
+ msgid "That command doesn't exist."
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:436
173
+ msgid "A {} may call this command every {} seconds"
174
+ msgstr ""
175
+
176
+ #: redbot/cogs/customcom/customcom.py:440
177
+ msgid "This command has no cooldown."
178
+ msgstr ""
179
+
180
+ #: redbot/cogs/customcom/customcom.py:444
181
+ msgid "{} must be one of {}"
182
+ msgstr ""
183
+
184
+ #: redbot/cogs/customcom/customcom.py:448
185
+ msgid "Custom command cooldown successfully edited."
186
+ msgstr ""
187
+
188
+ #: redbot/cogs/customcom/customcom.py:451
189
+ #: redbot/cogs/customcom/customcom.py:492
190
+ msgid "That command doesn't exist. Use `{command}` to add it."
191
+ msgstr ""
192
+
193
+ #: redbot/cogs/customcom/customcom.py:459
194
+ #, docstring
195
+ msgid "Delete a custom command.\n\n"
196
+ " Example:\n"
197
+ " - `[p]customcom delete yourcommand`\n\n"
198
+ " **Arguments:**\n\n"
199
+ " - `<command>` The custom command to delete.\n"
200
+ " "
201
+ msgstr ""
202
+
203
+ #: redbot/cogs/customcom/customcom.py:470
204
+ msgid "Custom command successfully deleted."
205
+ msgstr ""
206
+
207
+ #: redbot/cogs/customcom/customcom.py:477
208
+ #, docstring
209
+ msgid "Edit a custom command.\n\n"
210
+ " Example:\n"
211
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
212
+ " **Arguments:**\n\n"
213
+ " - `<command>` The custom command to edit.\n"
214
+ " - `<text>` The new text to return when executing the command.\n"
215
+ " "
216
+ msgstr ""
217
+
218
+ #: redbot/cogs/customcom/customcom.py:489
219
+ msgid "Custom command successfully edited."
220
+ msgstr ""
221
+
222
+ #: redbot/cogs/customcom/customcom.py:504
223
+ #, docstring
224
+ msgid "List all available custom commands.\n\n"
225
+ " The list displays a preview of each command's response, with\n"
226
+ " markdown escaped and newlines replaced with spaces.\n"
227
+ " "
228
+ msgstr ""
229
+
230
+ #: redbot/cogs/customcom/customcom.py:513
231
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
232
+ msgstr ""
233
+
234
+ #: redbot/cogs/customcom/customcom.py:529
235
+ msgid "Custom Command List"
236
+ msgstr ""
237
+
238
+ #: redbot/cogs/customcom/customcom.py:533
239
+ msgid "Page {num}/{total}"
240
+ msgstr ""
241
+
242
+ #: redbot/cogs/customcom/customcom.py:543
243
+ #, docstring
244
+ msgid "Shows a custom command's responses and its settings.\n\n"
245
+ " **Arguments:**\n\n"
246
+ " - `<command>` The custom command to show.\n"
247
+ " "
248
+ msgstr ""
249
+
250
+ #: redbot/cogs/customcom/customcom.py:553
251
+ msgid "I could not not find that custom command."
252
+ msgstr ""
253
+
254
+ #: redbot/cogs/customcom/customcom.py:564
255
+ msgid "Deleted User"
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:570
259
+ msgid "Random"
260
+ msgstr ""
261
+
262
+ #: redbot/cogs/customcom/customcom.py:570
263
+ msgid "Normal"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:572
267
+ msgid "Command: {command_name}\n"
268
+ "Author: {author}\n"
269
+ "Created: {created_at}\n"
270
+ "Type: {type}\n"
271
+ msgstr ""
272
+
273
+ #: redbot/cogs/customcom/customcom.py:584
274
+ msgid "Cooldowns:\n"
275
+ msgstr ""
276
+
277
+ #: redbot/cogs/customcom/customcom.py:586
278
+ msgid "{num} seconds per {period}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:589
282
+ msgid "Responses:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:687
286
+ msgid "Too many arguments!"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:691
290
+ msgid "Arguments must be sequential. Missing arguments: "
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:717
294
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
295
+ msgstr ""
296
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/ar-SA.po ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Arabic\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: ar\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: ar_SA\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr "مرحبا بكم في صانع {cc} العشوائي التفاعلي!\n"
22
+ "سيتم إضافة كل رسالة ترسلها كأحد الاستجابات العشوائية للاختيار منها بمجرد تشغيل هذا {cc}. للخروج من هذه القائمة التفاعلية، اكتب `{quit}`"
23
+
24
+ #: redbot/cogs/customcom/customcom.py:89
25
+ msgid "Add a random response:"
26
+ msgstr "إضافة رد عشوائي:"
27
+
28
+ #: redbot/cogs/customcom/customcom.py:101
29
+ msgid "Random responses must take the same arguments!"
30
+ msgstr "يجب أن تأخذ الردود العشوائية نفس الحجج!"
31
+
32
+ #: redbot/cogs/customcom/customcom.py:166
33
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
34
+ msgstr "هل تريد إنشاء أمر مخصص 'عشوائي'؟ (y/n)"
35
+
36
+ #: redbot/cogs/customcom/customcom.py:172
37
+ #: redbot/cogs/customcom/customcom.py:183
38
+ msgid "Response timed out, please try again later."
39
+ msgstr "انتهت مهلة الرد، يرجى المحاولة مرة أخرى لاحقاً."
40
+
41
+ #: redbot/cogs/customcom/customcom.py:177
42
+ msgid "What response do you want?"
43
+ msgstr "ما هي الاستجابة التي تريدها؟"
44
+
45
+ #: redbot/cogs/customcom/customcom.py:217
46
+ #, docstring
47
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
48
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
49
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
50
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
51
+ " "
52
+ msgstr ""
53
+
54
+ #: redbot/cogs/customcom/customcom.py:247
55
+ #, docstring
56
+ msgid "Base command for Custom Commands management."
57
+ msgstr ""
58
+
59
+ #: redbot/cogs/customcom/customcom.py:252
60
+ #, docstring
61
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
62
+ " This is helpful for copy and pasting.\n\n"
63
+ " **Arguments:**\n\n"
64
+ " - `<command>` The custom command to get the raw response of."
65
+ msgstr ""
66
+
67
+ #: redbot/cogs/customcom/customcom.py:277
68
+ msgid "Response #{num}/{total}"
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/customcom/customcom.py:287
72
+ msgid "Response #{num}/{total}:\n"
73
+ "{raw}"
74
+ msgstr ""
75
+
76
+ #: redbot/cogs/customcom/customcom.py:298
77
+ #, docstring
78
+ msgid "\n"
79
+ " Searches through custom commands, according to the query.\n\n"
80
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
81
+ " **Arguments:**\n\n"
82
+ " - `<query>` The query to search for. Can be multiple words.\n"
83
+ " "
84
+ msgstr ""
85
+
86
+ #: redbot/cogs/customcom/customcom.py:318
87
+ msgid "No close matches were found."
88
+ msgstr ""
89
+
90
+ #: redbot/cogs/customcom/customcom.py:323
91
+ msgid "Search results"
92
+ msgstr ""
93
+
94
+ #: redbot/cogs/customcom/customcom.py:328
95
+ msgid "The following matches have been found:"
96
+ msgstr ""
97
+
98
+ #: redbot/cogs/customcom/customcom.py:333
99
+ #, docstring
100
+ msgid "Create custom commands.\n\n"
101
+ " If a type is not specified, a simple CC will be created.\n"
102
+ " CCs can be enhanced with arguments, see the guide\n"
103
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
104
+ " "
105
+ msgstr "إنشاء أوامر مخصصة.\n\n"
106
+ " إذا لم يتم تحديد نوع ما، سيتم إنشاء نسخة تطبيقية بسيطة.\n"
107
+ " يمكن تعزيز CCCCs بالحجج، راجع الدليل\n"
108
+ " [here]()\n"
109
+ " "
110
+
111
+ #: redbot/cogs/customcom/customcom.py:344
112
+ #, docstring
113
+ msgid "Create a CC where it will randomly choose a response!\n\n"
114
+ " Note: This command is interactive.\n\n"
115
+ " **Arguments:**\n\n"
116
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
117
+ " "
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:354
121
+ #: redbot/cogs/customcom/customcom.py:388
122
+ msgid "Custom command names cannot have spaces in them."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:357
126
+ #: redbot/cogs/customcom/customcom.py:391
127
+ msgid "There already exists a bot command with the same name."
128
+ msgstr "يوجد بالفعل أمر بوت بنفس الاسم."
129
+
130
+ #: redbot/cogs/customcom/customcom.py:361
131
+ msgid "Custom command process cancelled."
132
+ msgstr "ت�� إلغاء عملية الأوامر المخصصة."
133
+
134
+ #: redbot/cogs/customcom/customcom.py:365
135
+ #: redbot/cogs/customcom/customcom.py:395
136
+ msgid "Custom command successfully added."
137
+ msgstr "تم إضافة الأمر المخصص بنجاح."
138
+
139
+ #: redbot/cogs/customcom/customcom.py:368
140
+ #: redbot/cogs/customcom/customcom.py:398
141
+ msgid "This command already exists. Use `{command}` to edit it."
142
+ msgstr "هذا الأمر موجود بالفعل. استخدم `{command}` لتعديله."
143
+
144
+ #: redbot/cogs/customcom/customcom.py:376
145
+ #, docstring
146
+ msgid "Add a simple custom command.\n\n"
147
+ " Example:\n"
148
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
149
+ " **Arguments:**\n\n"
150
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
151
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
152
+ " "
153
+ msgstr ""
154
+
155
+ #: redbot/cogs/customcom/customcom.py:410
156
+ #, docstring
157
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
158
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
159
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
160
+ " custom command.\n\n"
161
+ " Examples:\n"
162
+ " - `[p]customcom cooldown pingrole`\n"
163
+ " - `[p]customcom cooldown yourcommand 30`\n"
164
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
165
+ " **Arguments:**\n\n"
166
+ " - `<command>` The custom command to check or set the cooldown.\n"
167
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
168
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
169
+ " "
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:431
173
+ #: redbot/cogs/customcom/customcom.py:472
174
+ msgid "That command doesn't exist."
175
+ msgstr "هذا الأمر غير موجود."
176
+
177
+ #: redbot/cogs/customcom/customcom.py:436
178
+ msgid "A {} may call this command every {} seconds"
179
+ msgstr "يجوز {} استخدام هذا الأمر كل {} ثانية"
180
+
181
+ #: redbot/cogs/customcom/customcom.py:440
182
+ msgid "This command has no cooldown."
183
+ msgstr "هذا الأمر ليس له تبريد."
184
+
185
+ #: redbot/cogs/customcom/customcom.py:444
186
+ msgid "{} must be one of {}"
187
+ msgstr "{} يجب أن تكون واحدة من {}"
188
+
189
+ #: redbot/cogs/customcom/customcom.py:448
190
+ msgid "Custom command cooldown successfully edited."
191
+ msgstr "تم تعديل أمر تبريد مخصص بنجاح."
192
+
193
+ #: redbot/cogs/customcom/customcom.py:451
194
+ #: redbot/cogs/customcom/customcom.py:492
195
+ msgid "That command doesn't exist. Use `{command}` to add it."
196
+ msgstr "هذا الأمر غير موجود. استخدم `{command}` لإضافته."
197
+
198
+ #: redbot/cogs/customcom/customcom.py:459
199
+ #, docstring
200
+ msgid "Delete a custom command.\n\n"
201
+ " Example:\n"
202
+ " - `[p]customcom delete yourcommand`\n\n"
203
+ " **Arguments:**\n\n"
204
+ " - `<command>` The custom command to delete.\n"
205
+ " "
206
+ msgstr ""
207
+
208
+ #: redbot/cogs/customcom/customcom.py:470
209
+ msgid "Custom command successfully deleted."
210
+ msgstr "تم حذف الأمر المخصص بنجاح."
211
+
212
+ #: redbot/cogs/customcom/customcom.py:477
213
+ #, docstring
214
+ msgid "Edit a custom command.\n\n"
215
+ " Example:\n"
216
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
217
+ " **Arguments:**\n\n"
218
+ " - `<command>` The custom command to edit.\n"
219
+ " - `<text>` The new text to return when executing the command.\n"
220
+ " "
221
+ msgstr ""
222
+
223
+ #: redbot/cogs/customcom/customcom.py:489
224
+ msgid "Custom command successfully edited."
225
+ msgstr "تم تعديل الأمر المخصص بنجاح."
226
+
227
+ #: redbot/cogs/customcom/customcom.py:504
228
+ #, docstring
229
+ msgid "List all available custom commands.\n\n"
230
+ " The list displays a preview of each command's response, with\n"
231
+ " markdown escaped and newlines replaced with spaces.\n"
232
+ " "
233
+ msgstr "قائمة جميع الأوامر المخصصة المتاحة.\n\n"
234
+ " القائمة تعرض معاينة لرد كل أمر، مع\n"
235
+ " حررت من الدرك واستعيض عن الخطوط الجديدة بمسافات.\n"
236
+ " "
237
+
238
+ #: redbot/cogs/customcom/customcom.py:513
239
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
240
+ msgstr "لا توجد أوامر مخصصة في هذا الخادم. استخدم `{command}` لبدء إضافة البعض."
241
+
242
+ #: redbot/cogs/customcom/customcom.py:529
243
+ msgid "Custom Command List"
244
+ msgstr "قائمة الأوامر المخصصة"
245
+
246
+ #: redbot/cogs/customcom/customcom.py:533
247
+ msgid "Page {num}/{total}"
248
+ msgstr "الصفحة {num}/{total}"
249
+
250
+ #: redbot/cogs/customcom/customcom.py:543
251
+ #, docstring
252
+ msgid "Shows a custom command's responses and its settings.\n\n"
253
+ " **Arguments:**\n\n"
254
+ " - `<command>` The custom command to show.\n"
255
+ " "
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:553
259
+ msgid "I could not not find that custom command."
260
+ msgstr "لم أتمكن من العثور على هذا الأمر المخصص."
261
+
262
+ #: redbot/cogs/customcom/customcom.py:564
263
+ msgid "Deleted User"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:570
267
+ msgid "Random"
268
+ msgstr "عشوائي"
269
+
270
+ #: redbot/cogs/customcom/customcom.py:570
271
+ msgid "Normal"
272
+ msgstr "عادي"
273
+
274
+ #: redbot/cogs/customcom/customcom.py:572
275
+ msgid "Command: {command_name}\n"
276
+ "Author: {author}\n"
277
+ "Created: {created_at}\n"
278
+ "Type: {type}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:584
282
+ msgid "Cooldowns:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:586
286
+ msgid "{num} seconds per {period}\n"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:589
290
+ msgid "Responses:\n"
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:687
294
+ msgid "Too many arguments!"
295
+ msgstr ""
296
+
297
+ #: redbot/cogs/customcom/customcom.py:691
298
+ msgid "Arguments must be sequential. Missing arguments: "
299
+ msgstr "يجب أن تكون الحجج متتابعة. الحجج المفقودة: "
300
+
301
+ #: redbot/cogs/customcom/customcom.py:717
302
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
303
+ msgstr ""
304
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/bg-BG.po ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Bulgarian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: bg\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: bg_BG\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:89
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:101
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:166
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:172
36
+ #: redbot/cogs/customcom/customcom.py:183
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:177
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:217
45
+ #, docstring
46
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
47
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
48
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
49
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:247
54
+ #, docstring
55
+ msgid "Base command for Custom Commands management."
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:252
59
+ #, docstring
60
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
61
+ " This is helpful for copy and pasting.\n\n"
62
+ " **Arguments:**\n\n"
63
+ " - `<command>` The custom command to get the raw response of."
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/customcom/customcom.py:277
67
+ msgid "Response #{num}/{total}"
68
+ msgstr ""
69
+
70
+ #: redbot/cogs/customcom/customcom.py:287
71
+ msgid "Response #{num}/{total}:\n"
72
+ "{raw}"
73
+ msgstr ""
74
+
75
+ #: redbot/cogs/customcom/customcom.py:298
76
+ #, docstring
77
+ msgid "\n"
78
+ " Searches through custom commands, according to the query.\n\n"
79
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
80
+ " **Arguments:**\n\n"
81
+ " - `<query>` The query to search for. Can be multiple words.\n"
82
+ " "
83
+ msgstr ""
84
+
85
+ #: redbot/cogs/customcom/customcom.py:318
86
+ msgid "No close matches were found."
87
+ msgstr ""
88
+
89
+ #: redbot/cogs/customcom/customcom.py:323
90
+ msgid "Search results"
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:328
94
+ msgid "The following matches have been found:"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:333
98
+ #, docstring
99
+ msgid "Create custom commands.\n\n"
100
+ " If a type is not specified, a simple CC will be created.\n"
101
+ " CCs can be enhanced with arguments, see the guide\n"
102
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
103
+ " "
104
+ msgstr ""
105
+
106
+ #: redbot/cogs/customcom/customcom.py:344
107
+ #, docstring
108
+ msgid "Create a CC where it will randomly choose a response!\n\n"
109
+ " Note: This command is interactive.\n\n"
110
+ " **Arguments:**\n\n"
111
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/customcom/customcom.py:354
116
+ #: redbot/cogs/customcom/customcom.py:388
117
+ msgid "Custom command names cannot have spaces in them."
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:357
121
+ #: redbot/cogs/customcom/customcom.py:391
122
+ msgid "There already exists a bot command with the same name."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:361
126
+ msgid "Custom command process cancelled."
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/customcom/customcom.py:365
130
+ #: redbot/cogs/customcom/customcom.py:395
131
+ msgid "Custom command successfully added."
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/customcom/customcom.py:368
135
+ #: redbot/cogs/customcom/customcom.py:398
136
+ msgid "This command already exists. Use `{command}` to edit it."
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/customcom/customcom.py:376
140
+ #, docstring
141
+ msgid "Add a simple custom command.\n\n"
142
+ " Example:\n"
143
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
144
+ " **Arguments:**\n\n"
145
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
146
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
147
+ " "
148
+ msgstr ""
149
+
150
+ #: redbot/cogs/customcom/customcom.py:410
151
+ #, docstring
152
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
153
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
154
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
155
+ " custom command.\n\n"
156
+ " Examples:\n"
157
+ " - `[p]customcom cooldown pingrole`\n"
158
+ " - `[p]customcom cooldown yourcommand 30`\n"
159
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<command>` The custom command to check or set the cooldown.\n"
162
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
163
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
164
+ " "
165
+ msgstr ""
166
+
167
+ #: redbot/cogs/customcom/customcom.py:431
168
+ #: redbot/cogs/customcom/customcom.py:472
169
+ msgid "That command doesn't exist."
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:436
173
+ msgid "A {} may call this command every {} seconds"
174
+ msgstr ""
175
+
176
+ #: redbot/cogs/customcom/customcom.py:440
177
+ msgid "This command has no cooldown."
178
+ msgstr ""
179
+
180
+ #: redbot/cogs/customcom/customcom.py:444
181
+ msgid "{} must be one of {}"
182
+ msgstr ""
183
+
184
+ #: redbot/cogs/customcom/customcom.py:448
185
+ msgid "Custom command cooldown successfully edited."
186
+ msgstr ""
187
+
188
+ #: redbot/cogs/customcom/customcom.py:451
189
+ #: redbot/cogs/customcom/customcom.py:492
190
+ msgid "That command doesn't exist. Use `{command}` to add it."
191
+ msgstr ""
192
+
193
+ #: redbot/cogs/customcom/customcom.py:459
194
+ #, docstring
195
+ msgid "Delete a custom command.\n\n"
196
+ " Example:\n"
197
+ " - `[p]customcom delete yourcommand`\n\n"
198
+ " **Arguments:**\n\n"
199
+ " - `<command>` The custom command to delete.\n"
200
+ " "
201
+ msgstr ""
202
+
203
+ #: redbot/cogs/customcom/customcom.py:470
204
+ msgid "Custom command successfully deleted."
205
+ msgstr ""
206
+
207
+ #: redbot/cogs/customcom/customcom.py:477
208
+ #, docstring
209
+ msgid "Edit a custom command.\n\n"
210
+ " Example:\n"
211
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
212
+ " **Arguments:**\n\n"
213
+ " - `<command>` The custom command to edit.\n"
214
+ " - `<text>` The new text to return when executing the command.\n"
215
+ " "
216
+ msgstr ""
217
+
218
+ #: redbot/cogs/customcom/customcom.py:489
219
+ msgid "Custom command successfully edited."
220
+ msgstr ""
221
+
222
+ #: redbot/cogs/customcom/customcom.py:504
223
+ #, docstring
224
+ msgid "List all available custom commands.\n\n"
225
+ " The list displays a preview of each command's response, with\n"
226
+ " markdown escaped and newlines replaced with spaces.\n"
227
+ " "
228
+ msgstr ""
229
+
230
+ #: redbot/cogs/customcom/customcom.py:513
231
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
232
+ msgstr ""
233
+
234
+ #: redbot/cogs/customcom/customcom.py:529
235
+ msgid "Custom Command List"
236
+ msgstr ""
237
+
238
+ #: redbot/cogs/customcom/customcom.py:533
239
+ msgid "Page {num}/{total}"
240
+ msgstr ""
241
+
242
+ #: redbot/cogs/customcom/customcom.py:543
243
+ #, docstring
244
+ msgid "Shows a custom command's responses and its settings.\n\n"
245
+ " **Arguments:**\n\n"
246
+ " - `<command>` The custom command to show.\n"
247
+ " "
248
+ msgstr ""
249
+
250
+ #: redbot/cogs/customcom/customcom.py:553
251
+ msgid "I could not not find that custom command."
252
+ msgstr ""
253
+
254
+ #: redbot/cogs/customcom/customcom.py:564
255
+ msgid "Deleted User"
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:570
259
+ msgid "Random"
260
+ msgstr ""
261
+
262
+ #: redbot/cogs/customcom/customcom.py:570
263
+ msgid "Normal"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:572
267
+ msgid "Command: {command_name}\n"
268
+ "Author: {author}\n"
269
+ "Created: {created_at}\n"
270
+ "Type: {type}\n"
271
+ msgstr ""
272
+
273
+ #: redbot/cogs/customcom/customcom.py:584
274
+ msgid "Cooldowns:\n"
275
+ msgstr ""
276
+
277
+ #: redbot/cogs/customcom/customcom.py:586
278
+ msgid "{num} seconds per {period}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:589
282
+ msgid "Responses:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:687
286
+ msgid "Too many arguments!"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:691
290
+ msgid "Arguments must be sequential. Missing arguments: "
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:717
294
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
295
+ msgstr ""
296
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/bs-BA.po ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Bosnian\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: bs\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: bs_BA\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:89
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:101
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:166
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:172
36
+ #: redbot/cogs/customcom/customcom.py:183
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:177
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:217
45
+ #, docstring
46
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
47
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
48
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
49
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:247
54
+ #, docstring
55
+ msgid "Base command for Custom Commands management."
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:252
59
+ #, docstring
60
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
61
+ " This is helpful for copy and pasting.\n\n"
62
+ " **Arguments:**\n\n"
63
+ " - `<command>` The custom command to get the raw response of."
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/customcom/customcom.py:277
67
+ msgid "Response #{num}/{total}"
68
+ msgstr ""
69
+
70
+ #: redbot/cogs/customcom/customcom.py:287
71
+ msgid "Response #{num}/{total}:\n"
72
+ "{raw}"
73
+ msgstr ""
74
+
75
+ #: redbot/cogs/customcom/customcom.py:298
76
+ #, docstring
77
+ msgid "\n"
78
+ " Searches through custom commands, according to the query.\n\n"
79
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
80
+ " **Arguments:**\n\n"
81
+ " - `<query>` The query to search for. Can be multiple words.\n"
82
+ " "
83
+ msgstr ""
84
+
85
+ #: redbot/cogs/customcom/customcom.py:318
86
+ msgid "No close matches were found."
87
+ msgstr ""
88
+
89
+ #: redbot/cogs/customcom/customcom.py:323
90
+ msgid "Search results"
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:328
94
+ msgid "The following matches have been found:"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:333
98
+ #, docstring
99
+ msgid "Create custom commands.\n\n"
100
+ " If a type is not specified, a simple CC will be created.\n"
101
+ " CCs can be enhanced with arguments, see the guide\n"
102
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
103
+ " "
104
+ msgstr ""
105
+
106
+ #: redbot/cogs/customcom/customcom.py:344
107
+ #, docstring
108
+ msgid "Create a CC where it will randomly choose a response!\n\n"
109
+ " Note: This command is interactive.\n\n"
110
+ " **Arguments:**\n\n"
111
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/customcom/customcom.py:354
116
+ #: redbot/cogs/customcom/customcom.py:388
117
+ msgid "Custom command names cannot have spaces in them."
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:357
121
+ #: redbot/cogs/customcom/customcom.py:391
122
+ msgid "There already exists a bot command with the same name."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:361
126
+ msgid "Custom command process cancelled."
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/customcom/customcom.py:365
130
+ #: redbot/cogs/customcom/customcom.py:395
131
+ msgid "Custom command successfully added."
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/customcom/customcom.py:368
135
+ #: redbot/cogs/customcom/customcom.py:398
136
+ msgid "This command already exists. Use `{command}` to edit it."
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/customcom/customcom.py:376
140
+ #, docstring
141
+ msgid "Add a simple custom command.\n\n"
142
+ " Example:\n"
143
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
144
+ " **Arguments:**\n\n"
145
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
146
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
147
+ " "
148
+ msgstr ""
149
+
150
+ #: redbot/cogs/customcom/customcom.py:410
151
+ #, docstring
152
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
153
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
154
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
155
+ " custom command.\n\n"
156
+ " Examples:\n"
157
+ " - `[p]customcom cooldown pingrole`\n"
158
+ " - `[p]customcom cooldown yourcommand 30`\n"
159
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<command>` The custom command to check or set the cooldown.\n"
162
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
163
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
164
+ " "
165
+ msgstr ""
166
+
167
+ #: redbot/cogs/customcom/customcom.py:431
168
+ #: redbot/cogs/customcom/customcom.py:472
169
+ msgid "That command doesn't exist."
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:436
173
+ msgid "A {} may call this command every {} seconds"
174
+ msgstr ""
175
+
176
+ #: redbot/cogs/customcom/customcom.py:440
177
+ msgid "This command has no cooldown."
178
+ msgstr ""
179
+
180
+ #: redbot/cogs/customcom/customcom.py:444
181
+ msgid "{} must be one of {}"
182
+ msgstr ""
183
+
184
+ #: redbot/cogs/customcom/customcom.py:448
185
+ msgid "Custom command cooldown successfully edited."
186
+ msgstr ""
187
+
188
+ #: redbot/cogs/customcom/customcom.py:451
189
+ #: redbot/cogs/customcom/customcom.py:492
190
+ msgid "That command doesn't exist. Use `{command}` to add it."
191
+ msgstr ""
192
+
193
+ #: redbot/cogs/customcom/customcom.py:459
194
+ #, docstring
195
+ msgid "Delete a custom command.\n\n"
196
+ " Example:\n"
197
+ " - `[p]customcom delete yourcommand`\n\n"
198
+ " **Arguments:**\n\n"
199
+ " - `<command>` The custom command to delete.\n"
200
+ " "
201
+ msgstr ""
202
+
203
+ #: redbot/cogs/customcom/customcom.py:470
204
+ msgid "Custom command successfully deleted."
205
+ msgstr ""
206
+
207
+ #: redbot/cogs/customcom/customcom.py:477
208
+ #, docstring
209
+ msgid "Edit a custom command.\n\n"
210
+ " Example:\n"
211
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
212
+ " **Arguments:**\n\n"
213
+ " - `<command>` The custom command to edit.\n"
214
+ " - `<text>` The new text to return when executing the command.\n"
215
+ " "
216
+ msgstr ""
217
+
218
+ #: redbot/cogs/customcom/customcom.py:489
219
+ msgid "Custom command successfully edited."
220
+ msgstr ""
221
+
222
+ #: redbot/cogs/customcom/customcom.py:504
223
+ #, docstring
224
+ msgid "List all available custom commands.\n\n"
225
+ " The list displays a preview of each command's response, with\n"
226
+ " markdown escaped and newlines replaced with spaces.\n"
227
+ " "
228
+ msgstr ""
229
+
230
+ #: redbot/cogs/customcom/customcom.py:513
231
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
232
+ msgstr ""
233
+
234
+ #: redbot/cogs/customcom/customcom.py:529
235
+ msgid "Custom Command List"
236
+ msgstr ""
237
+
238
+ #: redbot/cogs/customcom/customcom.py:533
239
+ msgid "Page {num}/{total}"
240
+ msgstr ""
241
+
242
+ #: redbot/cogs/customcom/customcom.py:543
243
+ #, docstring
244
+ msgid "Shows a custom command's responses and its settings.\n\n"
245
+ " **Arguments:**\n\n"
246
+ " - `<command>` The custom command to show.\n"
247
+ " "
248
+ msgstr ""
249
+
250
+ #: redbot/cogs/customcom/customcom.py:553
251
+ msgid "I could not not find that custom command."
252
+ msgstr ""
253
+
254
+ #: redbot/cogs/customcom/customcom.py:564
255
+ msgid "Deleted User"
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:570
259
+ msgid "Random"
260
+ msgstr ""
261
+
262
+ #: redbot/cogs/customcom/customcom.py:570
263
+ msgid "Normal"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:572
267
+ msgid "Command: {command_name}\n"
268
+ "Author: {author}\n"
269
+ "Created: {created_at}\n"
270
+ "Type: {type}\n"
271
+ msgstr ""
272
+
273
+ #: redbot/cogs/customcom/customcom.py:584
274
+ msgid "Cooldowns:\n"
275
+ msgstr ""
276
+
277
+ #: redbot/cogs/customcom/customcom.py:586
278
+ msgid "{num} seconds per {period}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:589
282
+ msgid "Responses:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:687
286
+ msgid "Too many arguments!"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:691
290
+ msgid "Arguments must be sequential. Missing arguments: "
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:717
294
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
295
+ msgstr ""
296
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/ca-ES.po ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Catalan\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: ca\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: ca_ES\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:89
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:101
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:166
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:172
36
+ #: redbot/cogs/customcom/customcom.py:183
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:177
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:217
45
+ #, docstring
46
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
47
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
48
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
49
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:247
54
+ #, docstring
55
+ msgid "Base command for Custom Commands management."
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:252
59
+ #, docstring
60
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
61
+ " This is helpful for copy and pasting.\n\n"
62
+ " **Arguments:**\n\n"
63
+ " - `<command>` The custom command to get the raw response of."
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/customcom/customcom.py:277
67
+ msgid "Response #{num}/{total}"
68
+ msgstr ""
69
+
70
+ #: redbot/cogs/customcom/customcom.py:287
71
+ msgid "Response #{num}/{total}:\n"
72
+ "{raw}"
73
+ msgstr ""
74
+
75
+ #: redbot/cogs/customcom/customcom.py:298
76
+ #, docstring
77
+ msgid "\n"
78
+ " Searches through custom commands, according to the query.\n\n"
79
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
80
+ " **Arguments:**\n\n"
81
+ " - `<query>` The query to search for. Can be multiple words.\n"
82
+ " "
83
+ msgstr ""
84
+
85
+ #: redbot/cogs/customcom/customcom.py:318
86
+ msgid "No close matches were found."
87
+ msgstr ""
88
+
89
+ #: redbot/cogs/customcom/customcom.py:323
90
+ msgid "Search results"
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:328
94
+ msgid "The following matches have been found:"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:333
98
+ #, docstring
99
+ msgid "Create custom commands.\n\n"
100
+ " If a type is not specified, a simple CC will be created.\n"
101
+ " CCs can be enhanced with arguments, see the guide\n"
102
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
103
+ " "
104
+ msgstr ""
105
+
106
+ #: redbot/cogs/customcom/customcom.py:344
107
+ #, docstring
108
+ msgid "Create a CC where it will randomly choose a response!\n\n"
109
+ " Note: This command is interactive.\n\n"
110
+ " **Arguments:**\n\n"
111
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/customcom/customcom.py:354
116
+ #: redbot/cogs/customcom/customcom.py:388
117
+ msgid "Custom command names cannot have spaces in them."
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:357
121
+ #: redbot/cogs/customcom/customcom.py:391
122
+ msgid "There already exists a bot command with the same name."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:361
126
+ msgid "Custom command process cancelled."
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/customcom/customcom.py:365
130
+ #: redbot/cogs/customcom/customcom.py:395
131
+ msgid "Custom command successfully added."
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/customcom/customcom.py:368
135
+ #: redbot/cogs/customcom/customcom.py:398
136
+ msgid "This command already exists. Use `{command}` to edit it."
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/customcom/customcom.py:376
140
+ #, docstring
141
+ msgid "Add a simple custom command.\n\n"
142
+ " Example:\n"
143
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
144
+ " **Arguments:**\n\n"
145
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
146
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
147
+ " "
148
+ msgstr ""
149
+
150
+ #: redbot/cogs/customcom/customcom.py:410
151
+ #, docstring
152
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
153
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
154
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
155
+ " custom command.\n\n"
156
+ " Examples:\n"
157
+ " - `[p]customcom cooldown pingrole`\n"
158
+ " - `[p]customcom cooldown yourcommand 30`\n"
159
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<command>` The custom command to check or set the cooldown.\n"
162
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
163
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
164
+ " "
165
+ msgstr ""
166
+
167
+ #: redbot/cogs/customcom/customcom.py:431
168
+ #: redbot/cogs/customcom/customcom.py:472
169
+ msgid "That command doesn't exist."
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:436
173
+ msgid "A {} may call this command every {} seconds"
174
+ msgstr ""
175
+
176
+ #: redbot/cogs/customcom/customcom.py:440
177
+ msgid "This command has no cooldown."
178
+ msgstr ""
179
+
180
+ #: redbot/cogs/customcom/customcom.py:444
181
+ msgid "{} must be one of {}"
182
+ msgstr ""
183
+
184
+ #: redbot/cogs/customcom/customcom.py:448
185
+ msgid "Custom command cooldown successfully edited."
186
+ msgstr ""
187
+
188
+ #: redbot/cogs/customcom/customcom.py:451
189
+ #: redbot/cogs/customcom/customcom.py:492
190
+ msgid "That command doesn't exist. Use `{command}` to add it."
191
+ msgstr ""
192
+
193
+ #: redbot/cogs/customcom/customcom.py:459
194
+ #, docstring
195
+ msgid "Delete a custom command.\n\n"
196
+ " Example:\n"
197
+ " - `[p]customcom delete yourcommand`\n\n"
198
+ " **Arguments:**\n\n"
199
+ " - `<command>` The custom command to delete.\n"
200
+ " "
201
+ msgstr ""
202
+
203
+ #: redbot/cogs/customcom/customcom.py:470
204
+ msgid "Custom command successfully deleted."
205
+ msgstr ""
206
+
207
+ #: redbot/cogs/customcom/customcom.py:477
208
+ #, docstring
209
+ msgid "Edit a custom command.\n\n"
210
+ " Example:\n"
211
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
212
+ " **Arguments:**\n\n"
213
+ " - `<command>` The custom command to edit.\n"
214
+ " - `<text>` The new text to return when executing the command.\n"
215
+ " "
216
+ msgstr ""
217
+
218
+ #: redbot/cogs/customcom/customcom.py:489
219
+ msgid "Custom command successfully edited."
220
+ msgstr ""
221
+
222
+ #: redbot/cogs/customcom/customcom.py:504
223
+ #, docstring
224
+ msgid "List all available custom commands.\n\n"
225
+ " The list displays a preview of each command's response, with\n"
226
+ " markdown escaped and newlines replaced with spaces.\n"
227
+ " "
228
+ msgstr ""
229
+
230
+ #: redbot/cogs/customcom/customcom.py:513
231
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
232
+ msgstr ""
233
+
234
+ #: redbot/cogs/customcom/customcom.py:529
235
+ msgid "Custom Command List"
236
+ msgstr ""
237
+
238
+ #: redbot/cogs/customcom/customcom.py:533
239
+ msgid "Page {num}/{total}"
240
+ msgstr ""
241
+
242
+ #: redbot/cogs/customcom/customcom.py:543
243
+ #, docstring
244
+ msgid "Shows a custom command's responses and its settings.\n\n"
245
+ " **Arguments:**\n\n"
246
+ " - `<command>` The custom command to show.\n"
247
+ " "
248
+ msgstr ""
249
+
250
+ #: redbot/cogs/customcom/customcom.py:553
251
+ msgid "I could not not find that custom command."
252
+ msgstr ""
253
+
254
+ #: redbot/cogs/customcom/customcom.py:564
255
+ msgid "Deleted User"
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:570
259
+ msgid "Random"
260
+ msgstr ""
261
+
262
+ #: redbot/cogs/customcom/customcom.py:570
263
+ msgid "Normal"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:572
267
+ msgid "Command: {command_name}\n"
268
+ "Author: {author}\n"
269
+ "Created: {created_at}\n"
270
+ "Type: {type}\n"
271
+ msgstr ""
272
+
273
+ #: redbot/cogs/customcom/customcom.py:584
274
+ msgid "Cooldowns:\n"
275
+ msgstr ""
276
+
277
+ #: redbot/cogs/customcom/customcom.py:586
278
+ msgid "{num} seconds per {period}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:589
282
+ msgid "Responses:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:687
286
+ msgid "Too many arguments!"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:691
290
+ msgid "Arguments must be sequential. Missing arguments: "
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:717
294
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
295
+ msgstr ""
296
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/cs-CZ.po ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Czech\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=4; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 3;\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: cs\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: cs_CZ\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr "Vítejte v interaktivním náhodném {cc} tvůrci!\n"
22
+ "Každá zpráva, kterou odešlete, bude přidána jako jedna z náhodných odpovědí pro výběr od okamžiku, kdy bude tato {cc} spuštěna. Chcete-li ukončit toto interaktivní menu, zadejte `{quit}`"
23
+
24
+ #: redbot/cogs/customcom/customcom.py:89
25
+ msgid "Add a random response:"
26
+ msgstr "Přidat náhodnou odpověď:"
27
+
28
+ #: redbot/cogs/customcom/customcom.py:101
29
+ msgid "Random responses must take the same arguments!"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/customcom/customcom.py:166
33
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
34
+ msgstr "Chcete vytvořit 'náhodný' vlastní příkaz? (y/n)"
35
+
36
+ #: redbot/cogs/customcom/customcom.py:172
37
+ #: redbot/cogs/customcom/customcom.py:183
38
+ msgid "Response timed out, please try again later."
39
+ msgstr "Vypršel časový limit odpovědi, opakujte akci později."
40
+
41
+ #: redbot/cogs/customcom/customcom.py:177
42
+ msgid "What response do you want?"
43
+ msgstr "Jakou odpověď chcete?"
44
+
45
+ #: redbot/cogs/customcom/customcom.py:217
46
+ #, docstring
47
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
48
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
49
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
50
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
51
+ " "
52
+ msgstr ""
53
+
54
+ #: redbot/cogs/customcom/customcom.py:247
55
+ #, docstring
56
+ msgid "Base command for Custom Commands management."
57
+ msgstr ""
58
+
59
+ #: redbot/cogs/customcom/customcom.py:252
60
+ #, docstring
61
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
62
+ " This is helpful for copy and pasting.\n\n"
63
+ " **Arguments:**\n\n"
64
+ " - `<command>` The custom command to get the raw response of."
65
+ msgstr ""
66
+
67
+ #: redbot/cogs/customcom/customcom.py:277
68
+ msgid "Response #{num}/{total}"
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/customcom/customcom.py:287
72
+ msgid "Response #{num}/{total}:\n"
73
+ "{raw}"
74
+ msgstr ""
75
+
76
+ #: redbot/cogs/customcom/customcom.py:298
77
+ #, docstring
78
+ msgid "\n"
79
+ " Searches through custom commands, according to the query.\n\n"
80
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
81
+ " **Arguments:**\n\n"
82
+ " - `<query>` The query to search for. Can be multiple words.\n"
83
+ " "
84
+ msgstr ""
85
+
86
+ #: redbot/cogs/customcom/customcom.py:318
87
+ msgid "No close matches were found."
88
+ msgstr ""
89
+
90
+ #: redbot/cogs/customcom/customcom.py:323
91
+ msgid "Search results"
92
+ msgstr ""
93
+
94
+ #: redbot/cogs/customcom/customcom.py:328
95
+ msgid "The following matches have been found:"
96
+ msgstr ""
97
+
98
+ #: redbot/cogs/customcom/customcom.py:333
99
+ #, docstring
100
+ msgid "Create custom commands.\n\n"
101
+ " If a type is not specified, a simple CC will be created.\n"
102
+ " CCs can be enhanced with arguments, see the guide\n"
103
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
104
+ " "
105
+ msgstr ""
106
+
107
+ #: redbot/cogs/customcom/customcom.py:344
108
+ #, docstring
109
+ msgid "Create a CC where it will randomly choose a response!\n\n"
110
+ " Note: This command is interactive.\n\n"
111
+ " **Arguments:**\n\n"
112
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
113
+ " "
114
+ msgstr ""
115
+
116
+ #: redbot/cogs/customcom/customcom.py:354
117
+ #: redbot/cogs/customcom/customcom.py:388
118
+ msgid "Custom command names cannot have spaces in them."
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/customcom/customcom.py:357
122
+ #: redbot/cogs/customcom/customcom.py:391
123
+ msgid "There already exists a bot command with the same name."
124
+ msgstr ""
125
+
126
+ #: redbot/cogs/customcom/customcom.py:361
127
+ msgid "Custom command process cancelled."
128
+ msgstr "Vlastní příkaz byl zrušen."
129
+
130
+ #: redbot/cogs/customcom/customcom.py:365
131
+ #: redbot/cogs/customcom/customcom.py:395
132
+ msgid "Custom command successfully added."
133
+ msgstr "Vlastní příkaz byl úspěšně přidán."
134
+
135
+ #: redbot/cogs/customcom/customcom.py:368
136
+ #: redbot/cogs/customcom/customcom.py:398
137
+ msgid "This command already exists. Use `{command}` to edit it."
138
+ msgstr ""
139
+
140
+ #: redbot/cogs/customcom/customcom.py:376
141
+ #, docstring
142
+ msgid "Add a simple custom command.\n\n"
143
+ " Example:\n"
144
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
145
+ " **Arguments:**\n\n"
146
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
147
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
148
+ " "
149
+ msgstr ""
150
+
151
+ #: redbot/cogs/customcom/customcom.py:410
152
+ #, docstring
153
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
154
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
155
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
156
+ " custom command.\n\n"
157
+ " Examples:\n"
158
+ " - `[p]customcom cooldown pingrole`\n"
159
+ " - `[p]customcom cooldown yourcommand 30`\n"
160
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
161
+ " **Arguments:**\n\n"
162
+ " - `<command>` The custom command to check or set the cooldown.\n"
163
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
164
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
165
+ " "
166
+ msgstr ""
167
+
168
+ #: redbot/cogs/customcom/customcom.py:431
169
+ #: redbot/cogs/customcom/customcom.py:472
170
+ msgid "That command doesn't exist."
171
+ msgstr "Tento příkaz neexistuje."
172
+
173
+ #: redbot/cogs/customcom/customcom.py:436
174
+ msgid "A {} may call this command every {} seconds"
175
+ msgstr ""
176
+
177
+ #: redbot/cogs/customcom/customcom.py:440
178
+ msgid "This command has no cooldown."
179
+ msgstr ""
180
+
181
+ #: redbot/cogs/customcom/customcom.py:444
182
+ msgid "{} must be one of {}"
183
+ msgstr "{} musí být jeden z {}"
184
+
185
+ #: redbot/cogs/customcom/customcom.py:448
186
+ msgid "Custom command cooldown successfully edited."
187
+ msgstr ""
188
+
189
+ #: redbot/cogs/customcom/customcom.py:451
190
+ #: redbot/cogs/customcom/customcom.py:492
191
+ msgid "That command doesn't exist. Use `{command}` to add it."
192
+ msgstr "Tento příkaz neexistuje. Použijte `{command}` pro jeho přidání."
193
+
194
+ #: redbot/cogs/customcom/customcom.py:459
195
+ #, docstring
196
+ msgid "Delete a custom command.\n\n"
197
+ " Example:\n"
198
+ " - `[p]customcom delete yourcommand`\n\n"
199
+ " **Arguments:**\n\n"
200
+ " - `<command>` The custom command to delete.\n"
201
+ " "
202
+ msgstr ""
203
+
204
+ #: redbot/cogs/customcom/customcom.py:470
205
+ msgid "Custom command successfully deleted."
206
+ msgstr ""
207
+
208
+ #: redbot/cogs/customcom/customcom.py:477
209
+ #, docstring
210
+ msgid "Edit a custom command.\n\n"
211
+ " Example:\n"
212
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
213
+ " **Arguments:**\n\n"
214
+ " - `<command>` The custom command to edit.\n"
215
+ " - `<text>` The new text to return when executing the command.\n"
216
+ " "
217
+ msgstr ""
218
+
219
+ #: redbot/cogs/customcom/customcom.py:489
220
+ msgid "Custom command successfully edited."
221
+ msgstr "Vlastní příkaz byl úspěšně upraven."
222
+
223
+ #: redbot/cogs/customcom/customcom.py:504
224
+ #, docstring
225
+ msgid "List all available custom commands.\n\n"
226
+ " The list displays a preview of each command's response, with\n"
227
+ " markdown escaped and newlines replaced with spaces.\n"
228
+ " "
229
+ msgstr ""
230
+
231
+ #: redbot/cogs/customcom/customcom.py:513
232
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
233
+ msgstr "Na tomto serveru nejsou žádné vlastní příkazy. Použij `{command}` pro začátek přidávání."
234
+
235
+ #: redbot/cogs/customcom/customcom.py:529
236
+ msgid "Custom Command List"
237
+ msgstr "Seznam vlastních příkazů"
238
+
239
+ #: redbot/cogs/customcom/customcom.py:533
240
+ msgid "Page {num}/{total}"
241
+ msgstr "Strana {num}/{total}"
242
+
243
+ #: redbot/cogs/customcom/customcom.py:543
244
+ #, docstring
245
+ msgid "Shows a custom command's responses and its settings.\n\n"
246
+ " **Arguments:**\n\n"
247
+ " - `<command>` The custom command to show.\n"
248
+ " "
249
+ msgstr ""
250
+
251
+ #: redbot/cogs/customcom/customcom.py:553
252
+ msgid "I could not not find that custom command."
253
+ msgstr "Nemohu najít tento vlastní příkaz."
254
+
255
+ #: redbot/cogs/customcom/customcom.py:564
256
+ msgid "Deleted User"
257
+ msgstr ""
258
+
259
+ #: redbot/cogs/customcom/customcom.py:570
260
+ msgid "Random"
261
+ msgstr "Náhodně"
262
+
263
+ #: redbot/cogs/customcom/customcom.py:570
264
+ msgid "Normal"
265
+ msgstr "Normální"
266
+
267
+ #: redbot/cogs/customcom/customcom.py:572
268
+ msgid "Command: {command_name}\n"
269
+ "Author: {author}\n"
270
+ "Created: {created_at}\n"
271
+ "Type: {type}\n"
272
+ msgstr ""
273
+
274
+ #: redbot/cogs/customcom/customcom.py:584
275
+ msgid "Cooldowns:\n"
276
+ msgstr ""
277
+
278
+ #: redbot/cogs/customcom/customcom.py:586
279
+ msgid "{num} seconds per {period}\n"
280
+ msgstr ""
281
+
282
+ #: redbot/cogs/customcom/customcom.py:589
283
+ msgid "Responses:\n"
284
+ msgstr "Odpovědi:\n"
285
+
286
+ #: redbot/cogs/customcom/customcom.py:687
287
+ msgid "Too many arguments!"
288
+ msgstr "Příliš mnoho argumentů!"
289
+
290
+ #: redbot/cogs/customcom/customcom.py:691
291
+ msgid "Arguments must be sequential. Missing arguments: "
292
+ msgstr "Argumenty musí být sekvenční. Chybějící argumenty: "
293
+
294
+ #: redbot/cogs/customcom/customcom.py:717
295
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
296
+ msgstr ""
297
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/da-DK.po ADDED
@@ -0,0 +1,297 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Danish\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: da\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: da_DK\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr "Velkommen til den interaktive tilfældigheds {cc} skaber!\n"
22
+ "Hver besked som du sender vil blive tilføjet som et af de tilfældige svar at vælge imellem så snart {cc} er aktiveret. For at afslutte denne interaktive menu, skriv `{quit}`"
23
+
24
+ #: redbot/cogs/customcom/customcom.py:89
25
+ msgid "Add a random response:"
26
+ msgstr "Tilføj et tilfældig svar:"
27
+
28
+ #: redbot/cogs/customcom/customcom.py:101
29
+ msgid "Random responses must take the same arguments!"
30
+ msgstr ""
31
+
32
+ #: redbot/cogs/customcom/customcom.py:166
33
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
34
+ msgstr "Vil du skabe en \"tilfældigt\" brugerdefineret kommando? (y/n)"
35
+
36
+ #: redbot/cogs/customcom/customcom.py:172
37
+ #: redbot/cogs/customcom/customcom.py:183
38
+ msgid "Response timed out, please try again later."
39
+ msgstr ""
40
+
41
+ #: redbot/cogs/customcom/customcom.py:177
42
+ msgid "What response do you want?"
43
+ msgstr "Hvilket svar vil du have?"
44
+
45
+ #: redbot/cogs/customcom/customcom.py:217
46
+ #, docstring
47
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
48
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
49
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
50
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
51
+ " "
52
+ msgstr ""
53
+
54
+ #: redbot/cogs/customcom/customcom.py:247
55
+ #, docstring
56
+ msgid "Base command for Custom Commands management."
57
+ msgstr ""
58
+
59
+ #: redbot/cogs/customcom/customcom.py:252
60
+ #, docstring
61
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
62
+ " This is helpful for copy and pasting.\n\n"
63
+ " **Arguments:**\n\n"
64
+ " - `<command>` The custom command to get the raw response of."
65
+ msgstr ""
66
+
67
+ #: redbot/cogs/customcom/customcom.py:277
68
+ msgid "Response #{num}/{total}"
69
+ msgstr ""
70
+
71
+ #: redbot/cogs/customcom/customcom.py:287
72
+ msgid "Response #{num}/{total}:\n"
73
+ "{raw}"
74
+ msgstr ""
75
+
76
+ #: redbot/cogs/customcom/customcom.py:298
77
+ #, docstring
78
+ msgid "\n"
79
+ " Searches through custom commands, according to the query.\n\n"
80
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
81
+ " **Arguments:**\n\n"
82
+ " - `<query>` The query to search for. Can be multiple words.\n"
83
+ " "
84
+ msgstr ""
85
+
86
+ #: redbot/cogs/customcom/customcom.py:318
87
+ msgid "No close matches were found."
88
+ msgstr ""
89
+
90
+ #: redbot/cogs/customcom/customcom.py:323
91
+ msgid "Search results"
92
+ msgstr ""
93
+
94
+ #: redbot/cogs/customcom/customcom.py:328
95
+ msgid "The following matches have been found:"
96
+ msgstr ""
97
+
98
+ #: redbot/cogs/customcom/customcom.py:333
99
+ #, docstring
100
+ msgid "Create custom commands.\n\n"
101
+ " If a type is not specified, a simple CC will be created.\n"
102
+ " CCs can be enhanced with arguments, see the guide\n"
103
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
104
+ " "
105
+ msgstr ""
106
+
107
+ #: redbot/cogs/customcom/customcom.py:344
108
+ #, docstring
109
+ msgid "Create a CC where it will randomly choose a response!\n\n"
110
+ " Note: This command is interactive.\n\n"
111
+ " **Arguments:**\n\n"
112
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
113
+ " "
114
+ msgstr ""
115
+
116
+ #: redbot/cogs/customcom/customcom.py:354
117
+ #: redbot/cogs/customcom/customcom.py:388
118
+ msgid "Custom command names cannot have spaces in them."
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/customcom/customcom.py:357
122
+ #: redbot/cogs/customcom/customcom.py:391
123
+ msgid "There already exists a bot command with the same name."
124
+ msgstr ""
125
+
126
+ #: redbot/cogs/customcom/customcom.py:361
127
+ msgid "Custom command process cancelled."
128
+ msgstr ""
129
+
130
+ #: redbot/cogs/customcom/customcom.py:365
131
+ #: redbot/cogs/customcom/customcom.py:395
132
+ msgid "Custom command successfully added."
133
+ msgstr ""
134
+
135
+ #: redbot/cogs/customcom/customcom.py:368
136
+ #: redbot/cogs/customcom/customcom.py:398
137
+ msgid "This command already exists. Use `{command}` to edit it."
138
+ msgstr ""
139
+
140
+ #: redbot/cogs/customcom/customcom.py:376
141
+ #, docstring
142
+ msgid "Add a simple custom command.\n\n"
143
+ " Example:\n"
144
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
145
+ " **Arguments:**\n\n"
146
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
147
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
148
+ " "
149
+ msgstr ""
150
+
151
+ #: redbot/cogs/customcom/customcom.py:410
152
+ #, docstring
153
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
154
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
155
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
156
+ " custom command.\n\n"
157
+ " Examples:\n"
158
+ " - `[p]customcom cooldown pingrole`\n"
159
+ " - `[p]customcom cooldown yourcommand 30`\n"
160
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
161
+ " **Arguments:**\n\n"
162
+ " - `<command>` The custom command to check or set the cooldown.\n"
163
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
164
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
165
+ " "
166
+ msgstr ""
167
+
168
+ #: redbot/cogs/customcom/customcom.py:431
169
+ #: redbot/cogs/customcom/customcom.py:472
170
+ msgid "That command doesn't exist."
171
+ msgstr ""
172
+
173
+ #: redbot/cogs/customcom/customcom.py:436
174
+ msgid "A {} may call this command every {} seconds"
175
+ msgstr ""
176
+
177
+ #: redbot/cogs/customcom/customcom.py:440
178
+ msgid "This command has no cooldown."
179
+ msgstr ""
180
+
181
+ #: redbot/cogs/customcom/customcom.py:444
182
+ msgid "{} must be one of {}"
183
+ msgstr ""
184
+
185
+ #: redbot/cogs/customcom/customcom.py:448
186
+ msgid "Custom command cooldown successfully edited."
187
+ msgstr ""
188
+
189
+ #: redbot/cogs/customcom/customcom.py:451
190
+ #: redbot/cogs/customcom/customcom.py:492
191
+ msgid "That command doesn't exist. Use `{command}` to add it."
192
+ msgstr ""
193
+
194
+ #: redbot/cogs/customcom/customcom.py:459
195
+ #, docstring
196
+ msgid "Delete a custom command.\n\n"
197
+ " Example:\n"
198
+ " - `[p]customcom delete yourcommand`\n\n"
199
+ " **Arguments:**\n\n"
200
+ " - `<command>` The custom command to delete.\n"
201
+ " "
202
+ msgstr ""
203
+
204
+ #: redbot/cogs/customcom/customcom.py:470
205
+ msgid "Custom command successfully deleted."
206
+ msgstr ""
207
+
208
+ #: redbot/cogs/customcom/customcom.py:477
209
+ #, docstring
210
+ msgid "Edit a custom command.\n\n"
211
+ " Example:\n"
212
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
213
+ " **Arguments:**\n\n"
214
+ " - `<command>` The custom command to edit.\n"
215
+ " - `<text>` The new text to return when executing the command.\n"
216
+ " "
217
+ msgstr ""
218
+
219
+ #: redbot/cogs/customcom/customcom.py:489
220
+ msgid "Custom command successfully edited."
221
+ msgstr ""
222
+
223
+ #: redbot/cogs/customcom/customcom.py:504
224
+ #, docstring
225
+ msgid "List all available custom commands.\n\n"
226
+ " The list displays a preview of each command's response, with\n"
227
+ " markdown escaped and newlines replaced with spaces.\n"
228
+ " "
229
+ msgstr ""
230
+
231
+ #: redbot/cogs/customcom/customcom.py:513
232
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
233
+ msgstr ""
234
+
235
+ #: redbot/cogs/customcom/customcom.py:529
236
+ msgid "Custom Command List"
237
+ msgstr ""
238
+
239
+ #: redbot/cogs/customcom/customcom.py:533
240
+ msgid "Page {num}/{total}"
241
+ msgstr ""
242
+
243
+ #: redbot/cogs/customcom/customcom.py:543
244
+ #, docstring
245
+ msgid "Shows a custom command's responses and its settings.\n\n"
246
+ " **Arguments:**\n\n"
247
+ " - `<command>` The custom command to show.\n"
248
+ " "
249
+ msgstr ""
250
+
251
+ #: redbot/cogs/customcom/customcom.py:553
252
+ msgid "I could not not find that custom command."
253
+ msgstr ""
254
+
255
+ #: redbot/cogs/customcom/customcom.py:564
256
+ msgid "Deleted User"
257
+ msgstr ""
258
+
259
+ #: redbot/cogs/customcom/customcom.py:570
260
+ msgid "Random"
261
+ msgstr ""
262
+
263
+ #: redbot/cogs/customcom/customcom.py:570
264
+ msgid "Normal"
265
+ msgstr ""
266
+
267
+ #: redbot/cogs/customcom/customcom.py:572
268
+ msgid "Command: {command_name}\n"
269
+ "Author: {author}\n"
270
+ "Created: {created_at}\n"
271
+ "Type: {type}\n"
272
+ msgstr ""
273
+
274
+ #: redbot/cogs/customcom/customcom.py:584
275
+ msgid "Cooldowns:\n"
276
+ msgstr ""
277
+
278
+ #: redbot/cogs/customcom/customcom.py:586
279
+ msgid "{num} seconds per {period}\n"
280
+ msgstr ""
281
+
282
+ #: redbot/cogs/customcom/customcom.py:589
283
+ msgid "Responses:\n"
284
+ msgstr ""
285
+
286
+ #: redbot/cogs/customcom/customcom.py:687
287
+ msgid "Too many arguments!"
288
+ msgstr ""
289
+
290
+ #: redbot/cogs/customcom/customcom.py:691
291
+ msgid "Arguments must be sequential. Missing arguments: "
292
+ msgstr ""
293
+
294
+ #: redbot/cogs/customcom/customcom.py:717
295
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
296
+ msgstr ""
297
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/de-DE.po ADDED
@@ -0,0 +1,308 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: German\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: de\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: de_DE\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr "**Hier kannst du einen zufälligen „{cc}“ Befehl erstellen.**\n"
22
+ "Jede von dir gesendete Nachricht wird als eine der zufälligen Antworten hinzugefügt, aus denen dann zufällig gewählt wird, sobald dieser „{cc}“ ausgeführt wird. Um dieses interaktive Menü zu beenden, schreibe: `{quit}`."
23
+
24
+ #: redbot/cogs/customcom/customcom.py:89
25
+ msgid "Add a random response:"
26
+ msgstr "Füge eine zufällige Antwort hinzu:"
27
+
28
+ #: redbot/cogs/customcom/customcom.py:101
29
+ msgid "Random responses must take the same arguments!"
30
+ msgstr "Zufällige Antworten müssen die gleichen Argumente aufweisen!"
31
+
32
+ #: redbot/cogs/customcom/customcom.py:166
33
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
34
+ msgstr "Möchtest du einen 'zufälligen' benutzerdefinierten Befehl erstellen? (y/n)"
35
+
36
+ #: redbot/cogs/customcom/customcom.py:172
37
+ #: redbot/cogs/customcom/customcom.py:183
38
+ msgid "Response timed out, please try again later."
39
+ msgstr "Zeitüberschreitung bei der Antwort, versuche es später erneut."
40
+
41
+ #: redbot/cogs/customcom/customcom.py:177
42
+ msgid "What response do you want?"
43
+ msgstr "Welche Reaktion willst du?"
44
+
45
+ #: redbot/cogs/customcom/customcom.py:217
46
+ #, docstring
47
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
48
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
49
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
50
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
51
+ " "
52
+ msgstr ""
53
+
54
+ #: redbot/cogs/customcom/customcom.py:247
55
+ #, docstring
56
+ msgid "Base command for Custom Commands management."
57
+ msgstr ""
58
+
59
+ #: redbot/cogs/customcom/customcom.py:252
60
+ #, docstring
61
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
62
+ " This is helpful for copy and pasting.\n\n"
63
+ " **Arguments:**\n\n"
64
+ " - `<command>` The custom command to get the raw response of."
65
+ msgstr ""
66
+
67
+ #: redbot/cogs/customcom/customcom.py:277
68
+ msgid "Response #{num}/{total}"
69
+ msgstr "Antwort #{num}/{total}"
70
+
71
+ #: redbot/cogs/customcom/customcom.py:287
72
+ msgid "Response #{num}/{total}:\n"
73
+ "{raw}"
74
+ msgstr "Antwort #{num}/{total}:\n"
75
+ "{raw}"
76
+
77
+ #: redbot/cogs/customcom/customcom.py:298
78
+ #, docstring
79
+ msgid "\n"
80
+ " Searches through custom commands, according to the query.\n\n"
81
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
82
+ " **Arguments:**\n\n"
83
+ " - `<query>` The query to search for. Can be multiple words.\n"
84
+ " "
85
+ msgstr ""
86
+
87
+ #: redbot/cogs/customcom/customcom.py:318
88
+ msgid "No close matches were found."
89
+ msgstr "Keine Ergebnisse gefunden."
90
+
91
+ #: redbot/cogs/customcom/customcom.py:323
92
+ msgid "Search results"
93
+ msgstr "Suchergebnisse"
94
+
95
+ #: redbot/cogs/customcom/customcom.py:328
96
+ msgid "The following matches have been found:"
97
+ msgstr "Folgendes wurde gefunden:"
98
+
99
+ #: redbot/cogs/customcom/customcom.py:333
100
+ #, docstring
101
+ msgid "Create custom commands.\n\n"
102
+ " If a type is not specified, a simple CC will be created.\n"
103
+ " CCs can be enhanced with arguments, see the guide\n"
104
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
105
+ " "
106
+ msgstr "Erstelle einen benutzerdefinierten Befehl.\n\n"
107
+ " Wenn keine Art für den benutzerdefinierten Befehl spezifiziert wurde, wird ein einfacher benutzerdefinierter Befehl erstellt.\n"
108
+ " Benutzerdefinierte Befehle können auch mit Argumenten erweitert werden. Siehe diese Anleitung:\n"
109
+ " [Dokumentation](https://docs.discord.red/en/stable/cog_customcom.html).\n"
110
+ " "
111
+
112
+ #: redbot/cogs/customcom/customcom.py:344
113
+ #, docstring
114
+ msgid "Create a CC where it will randomly choose a response!\n\n"
115
+ " Note: This command is interactive.\n\n"
116
+ " **Arguments:**\n\n"
117
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
118
+ " "
119
+ msgstr ""
120
+
121
+ #: redbot/cogs/customcom/customcom.py:354
122
+ #: redbot/cogs/customcom/customcom.py:388
123
+ msgid "Custom command names cannot have spaces in them."
124
+ msgstr "Benutzerdefinierte Befehle dürfen keine Leerzeichen enthalten."
125
+
126
+ #: redbot/cogs/customcom/customcom.py:357
127
+ #: redbot/cogs/customcom/customcom.py:391
128
+ msgid "There already exists a bot command with the same name."
129
+ msgstr "Es existiert bereits ein Befehl des Bots mit diesem Namen."
130
+
131
+ #: redbot/cogs/customcom/customcom.py:361
132
+ msgid "Custom command process cancelled."
133
+ msgstr "Der Vorgang, zum Erstellen eines benutzedefinierten Befehls, wurde abgebrochen."
134
+
135
+ #: redbot/cogs/customcom/customcom.py:365
136
+ #: redbot/cogs/customcom/customcom.py:395
137
+ msgid "Custom command successfully added."
138
+ msgstr "Benutzerdefinierter Befehl erfolgreich hinzugefügt."
139
+
140
+ #: redbot/cogs/customcom/customcom.py:368
141
+ #: redbot/cogs/customcom/customcom.py:398
142
+ msgid "This command already exists. Use `{command}` to edit it."
143
+ msgstr "Dieser Befehl ist bereits vorhanden. Verwende `{command}` um ihn zu editieren."
144
+
145
+ #: redbot/cogs/customcom/customcom.py:376
146
+ #, docstring
147
+ msgid "Add a simple custom command.\n\n"
148
+ " Example:\n"
149
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
150
+ " **Arguments:**\n\n"
151
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
152
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
153
+ " "
154
+ msgstr ""
155
+
156
+ #: redbot/cogs/customcom/customcom.py:410
157
+ #, docstring
158
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
159
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
160
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
161
+ " custom command.\n\n"
162
+ " Examples:\n"
163
+ " - `[p]customcom cooldown pingrole`\n"
164
+ " - `[p]customcom cooldown yourcommand 30`\n"
165
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
166
+ " **Arguments:**\n\n"
167
+ " - `<command>` The custom command to check or set the cooldown.\n"
168
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
169
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
170
+ " "
171
+ msgstr ""
172
+
173
+ #: redbot/cogs/customcom/customcom.py:431
174
+ #: redbot/cogs/customcom/customcom.py:472
175
+ msgid "That command doesn't exist."
176
+ msgstr "Dieser Befehl existiert nicht."
177
+
178
+ #: redbot/cogs/customcom/customcom.py:436
179
+ msgid "A {} may call this command every {} seconds"
180
+ msgstr "Ein {} darf diesen Befehl alle {} Sekunden aufrufen"
181
+
182
+ #: redbot/cogs/customcom/customcom.py:440
183
+ msgid "This command has no cooldown."
184
+ msgstr "Dieser Befehl hat keine Abklingzeit."
185
+
186
+ #: redbot/cogs/customcom/customcom.py:444
187
+ msgid "{} must be one of {}"
188
+ msgstr "{} muss einer von {} sein"
189
+
190
+ #: redbot/cogs/customcom/customcom.py:448
191
+ msgid "Custom command cooldown successfully edited."
192
+ msgstr "Abklingzeit des benutzerdefinierten Befehls erfolgreich bearbeitet."
193
+
194
+ #: redbot/cogs/customcom/customcom.py:451
195
+ #: redbot/cogs/customcom/customcom.py:492
196
+ msgid "That command doesn't exist. Use `{command}` to add it."
197
+ msgstr "Dieser Befehl existiert nicht. Verwende `{command}`, um ihn hinzuzufügen."
198
+
199
+ #: redbot/cogs/customcom/customcom.py:459
200
+ #, docstring
201
+ msgid "Delete a custom command.\n\n"
202
+ " Example:\n"
203
+ " - `[p]customcom delete yourcommand`\n\n"
204
+ " **Arguments:**\n\n"
205
+ " - `<command>` The custom command to delete.\n"
206
+ " "
207
+ msgstr ""
208
+
209
+ #: redbot/cogs/customcom/customcom.py:470
210
+ msgid "Custom command successfully deleted."
211
+ msgstr "Benutzerdefinierter Befehl erfolgreich gelöscht."
212
+
213
+ #: redbot/cogs/customcom/customcom.py:477
214
+ #, docstring
215
+ msgid "Edit a custom command.\n\n"
216
+ " Example:\n"
217
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
218
+ " **Arguments:**\n\n"
219
+ " - `<command>` The custom command to edit.\n"
220
+ " - `<text>` The new text to return when executing the command.\n"
221
+ " "
222
+ msgstr ""
223
+
224
+ #: redbot/cogs/customcom/customcom.py:489
225
+ msgid "Custom command successfully edited."
226
+ msgstr "Benutzerdefinierter Befehl erfolgreich bearbeitet."
227
+
228
+ #: redbot/cogs/customcom/customcom.py:504
229
+ #, docstring
230
+ msgid "List all available custom commands.\n\n"
231
+ " The list displays a preview of each command's response, with\n"
232
+ " markdown escaped and newlines replaced with spaces.\n"
233
+ " "
234
+ msgstr "Listet alle verfügbaren benutzerdefinierten Befehle auf.\n\n"
235
+ " Die Liste zeigt eine Vorschau der einzelnen Befehlsantworten,\n"
236
+ " mit escaped Markdown und Zeilenumbrüche durch Leerzeichen ersetzt.\n"
237
+ " "
238
+
239
+ #: redbot/cogs/customcom/customcom.py:513
240
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
241
+ msgstr "Es existieren keine benutzerdefinierten Befehle auf diesem Server. Verwende `{command}`, um welche hinzuzufügen."
242
+
243
+ #: redbot/cogs/customcom/customcom.py:529
244
+ msgid "Custom Command List"
245
+ msgstr "Liste der benutzerdefinierten Befehle"
246
+
247
+ #: redbot/cogs/customcom/customcom.py:533
248
+ msgid "Page {num}/{total}"
249
+ msgstr "Seite {num}/{total}"
250
+
251
+ #: redbot/cogs/customcom/customcom.py:543
252
+ #, docstring
253
+ msgid "Shows a custom command's responses and its settings.\n\n"
254
+ " **Arguments:**\n\n"
255
+ " - `<command>` The custom command to show.\n"
256
+ " "
257
+ msgstr ""
258
+
259
+ #: redbot/cogs/customcom/customcom.py:553
260
+ msgid "I could not not find that custom command."
261
+ msgstr "Ich konnte diesen benutzerdefinierten Befehl nicht finden."
262
+
263
+ #: redbot/cogs/customcom/customcom.py:564
264
+ msgid "Deleted User"
265
+ msgstr ""
266
+
267
+ #: redbot/cogs/customcom/customcom.py:570
268
+ msgid "Random"
269
+ msgstr "Zufall"
270
+
271
+ #: redbot/cogs/customcom/customcom.py:570
272
+ msgid "Normal"
273
+ msgstr "Normal"
274
+
275
+ #: redbot/cogs/customcom/customcom.py:572
276
+ msgid "Command: {command_name}\n"
277
+ "Author: {author}\n"
278
+ "Created: {created_at}\n"
279
+ "Type: {type}\n"
280
+ msgstr "Befehl: {command_name}\n"
281
+ "Autor: {author}\n"
282
+ "Erstellt: {created_at}\n"
283
+ "Typ: {type}\n"
284
+
285
+ #: redbot/cogs/customcom/customcom.py:584
286
+ msgid "Cooldowns:\n"
287
+ msgstr "Cooldown:\n"
288
+
289
+ #: redbot/cogs/customcom/customcom.py:586
290
+ msgid "{num} seconds per {period}\n"
291
+ msgstr "{num} Sekunden pro {period}\n"
292
+
293
+ #: redbot/cogs/customcom/customcom.py:589
294
+ msgid "Responses:\n"
295
+ msgstr "Antworten:\n"
296
+
297
+ #: redbot/cogs/customcom/customcom.py:687
298
+ msgid "Too many arguments!"
299
+ msgstr "Zu viele Argumente!"
300
+
301
+ #: redbot/cogs/customcom/customcom.py:691
302
+ msgid "Arguments must be sequential. Missing arguments: "
303
+ msgstr "Argumente müssen sequentiell sein. Fehlende Argumente: "
304
+
305
+ #: redbot/cogs/customcom/customcom.py:717
306
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
307
+ msgstr "Widersprüchliche Doppelpunkt Schreibweise für Argument {index}: \"{name1}\" und \"{name2}\"."
308
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/el-GR.po ADDED
@@ -0,0 +1,296 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2021-02-11 12:29+0000\n"
5
+ "Last-Translator: \n"
6
+ "Language-Team: Greek\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=UTF-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Generated-By: redgettext 3.3\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "X-Crowdin-Project: red-discordbot\n"
13
+ "X-Crowdin-Project-ID: 289505\n"
14
+ "X-Crowdin-Language: el\n"
15
+ "X-Crowdin-File-ID: 41\n"
16
+ "Language: el_GR\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:78
19
+ msgid "Welcome to the interactive random {cc} maker!\n"
20
+ "Every message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:89
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:101
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:166
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:172
36
+ #: redbot/cogs/customcom/customcom.py:183
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:177
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:217
45
+ #, docstring
46
+ msgid "This cog contains commands for creating and managing custom commands that display text.\n\n"
47
+ " These are useful for storing information members might need, like FAQ answers or invite links.\n"
48
+ " Custom commands can be used by anyone by default, so be careful with pings.\n"
49
+ " Commands can only be lowercase, and will not respond to any uppercase letters.\n"
50
+ " "
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:247
54
+ #, docstring
55
+ msgid "Base command for Custom Commands management."
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:252
59
+ #, docstring
60
+ msgid "Get the raw response of a custom command, to get the proper markdown.\n\n"
61
+ " This is helpful for copy and pasting.\n\n"
62
+ " **Arguments:**\n\n"
63
+ " - `<command>` The custom command to get the raw response of."
64
+ msgstr ""
65
+
66
+ #: redbot/cogs/customcom/customcom.py:277
67
+ msgid "Response #{num}/{total}"
68
+ msgstr ""
69
+
70
+ #: redbot/cogs/customcom/customcom.py:287
71
+ msgid "Response #{num}/{total}:\n"
72
+ "{raw}"
73
+ msgstr ""
74
+
75
+ #: redbot/cogs/customcom/customcom.py:298
76
+ #, docstring
77
+ msgid "\n"
78
+ " Searches through custom commands, according to the query.\n\n"
79
+ " Uses fuzzywuzzy searching to find close matches.\n\n"
80
+ " **Arguments:**\n\n"
81
+ " - `<query>` The query to search for. Can be multiple words.\n"
82
+ " "
83
+ msgstr ""
84
+
85
+ #: redbot/cogs/customcom/customcom.py:318
86
+ msgid "No close matches were found."
87
+ msgstr ""
88
+
89
+ #: redbot/cogs/customcom/customcom.py:323
90
+ msgid "Search results"
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:328
94
+ msgid "The following matches have been found:"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:333
98
+ #, docstring
99
+ msgid "Create custom commands.\n\n"
100
+ " If a type is not specified, a simple CC will be created.\n"
101
+ " CCs can be enhanced with arguments, see the guide\n"
102
+ " [here](https://docs.discord.red/en/stable/cog_customcom.html).\n"
103
+ " "
104
+ msgstr ""
105
+
106
+ #: redbot/cogs/customcom/customcom.py:344
107
+ #, docstring
108
+ msgid "Create a CC where it will randomly choose a response!\n\n"
109
+ " Note: This command is interactive.\n\n"
110
+ " **Arguments:**\n\n"
111
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
112
+ " "
113
+ msgstr ""
114
+
115
+ #: redbot/cogs/customcom/customcom.py:354
116
+ #: redbot/cogs/customcom/customcom.py:388
117
+ msgid "Custom command names cannot have spaces in them."
118
+ msgstr ""
119
+
120
+ #: redbot/cogs/customcom/customcom.py:357
121
+ #: redbot/cogs/customcom/customcom.py:391
122
+ msgid "There already exists a bot command with the same name."
123
+ msgstr ""
124
+
125
+ #: redbot/cogs/customcom/customcom.py:361
126
+ msgid "Custom command process cancelled."
127
+ msgstr ""
128
+
129
+ #: redbot/cogs/customcom/customcom.py:365
130
+ #: redbot/cogs/customcom/customcom.py:395
131
+ msgid "Custom command successfully added."
132
+ msgstr ""
133
+
134
+ #: redbot/cogs/customcom/customcom.py:368
135
+ #: redbot/cogs/customcom/customcom.py:398
136
+ msgid "This command already exists. Use `{command}` to edit it."
137
+ msgstr ""
138
+
139
+ #: redbot/cogs/customcom/customcom.py:376
140
+ #, docstring
141
+ msgid "Add a simple custom command.\n\n"
142
+ " Example:\n"
143
+ " - `[p]customcom create simple yourcommand Text you want`\n\n"
144
+ " **Arguments:**\n\n"
145
+ " - `<command>` The command executed to return the text. Cast to lowercase.\n"
146
+ " - `<text>` The text to return when executing the command. See guide for enhanced usage.\n"
147
+ " "
148
+ msgstr ""
149
+
150
+ #: redbot/cogs/customcom/customcom.py:410
151
+ #, docstring
152
+ msgid "Set, edit, or view the cooldown for a custom command.\n\n"
153
+ " You may set cooldowns per member, channel, or guild. Multiple\n"
154
+ " cooldowns may be set. All cooldowns must be cooled to call the\n"
155
+ " custom command.\n\n"
156
+ " Examples:\n"
157
+ " - `[p]customcom cooldown pingrole`\n"
158
+ " - `[p]customcom cooldown yourcommand 30`\n"
159
+ " - `[p]cc cooldown mycommand 30 guild`\n\n"
160
+ " **Arguments:**\n\n"
161
+ " - `<command>` The custom command to check or set the cooldown.\n"
162
+ " - `<cooldown>` The number of seconds to wait before allowing the command to be invoked again. If omitted, will instead return the current cooldown settings.\n"
163
+ " - `<per>` The group to apply the cooldown on. Defaults to per member. Valid choices are server, guild, user, and member.\n"
164
+ " "
165
+ msgstr ""
166
+
167
+ #: redbot/cogs/customcom/customcom.py:431
168
+ #: redbot/cogs/customcom/customcom.py:472
169
+ msgid "That command doesn't exist."
170
+ msgstr ""
171
+
172
+ #: redbot/cogs/customcom/customcom.py:436
173
+ msgid "A {} may call this command every {} seconds"
174
+ msgstr ""
175
+
176
+ #: redbot/cogs/customcom/customcom.py:440
177
+ msgid "This command has no cooldown."
178
+ msgstr ""
179
+
180
+ #: redbot/cogs/customcom/customcom.py:444
181
+ msgid "{} must be one of {}"
182
+ msgstr ""
183
+
184
+ #: redbot/cogs/customcom/customcom.py:448
185
+ msgid "Custom command cooldown successfully edited."
186
+ msgstr ""
187
+
188
+ #: redbot/cogs/customcom/customcom.py:451
189
+ #: redbot/cogs/customcom/customcom.py:492
190
+ msgid "That command doesn't exist. Use `{command}` to add it."
191
+ msgstr ""
192
+
193
+ #: redbot/cogs/customcom/customcom.py:459
194
+ #, docstring
195
+ msgid "Delete a custom command.\n\n"
196
+ " Example:\n"
197
+ " - `[p]customcom delete yourcommand`\n\n"
198
+ " **Arguments:**\n\n"
199
+ " - `<command>` The custom command to delete.\n"
200
+ " "
201
+ msgstr ""
202
+
203
+ #: redbot/cogs/customcom/customcom.py:470
204
+ msgid "Custom command successfully deleted."
205
+ msgstr ""
206
+
207
+ #: redbot/cogs/customcom/customcom.py:477
208
+ #, docstring
209
+ msgid "Edit a custom command.\n\n"
210
+ " Example:\n"
211
+ " - `[p]customcom edit yourcommand Text you want`\n\n"
212
+ " **Arguments:**\n\n"
213
+ " - `<command>` The custom command to edit.\n"
214
+ " - `<text>` The new text to return when executing the command.\n"
215
+ " "
216
+ msgstr ""
217
+
218
+ #: redbot/cogs/customcom/customcom.py:489
219
+ msgid "Custom command successfully edited."
220
+ msgstr ""
221
+
222
+ #: redbot/cogs/customcom/customcom.py:504
223
+ #, docstring
224
+ msgid "List all available custom commands.\n\n"
225
+ " The list displays a preview of each command's response, with\n"
226
+ " markdown escaped and newlines replaced with spaces.\n"
227
+ " "
228
+ msgstr ""
229
+
230
+ #: redbot/cogs/customcom/customcom.py:513
231
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
232
+ msgstr ""
233
+
234
+ #: redbot/cogs/customcom/customcom.py:529
235
+ msgid "Custom Command List"
236
+ msgstr ""
237
+
238
+ #: redbot/cogs/customcom/customcom.py:533
239
+ msgid "Page {num}/{total}"
240
+ msgstr ""
241
+
242
+ #: redbot/cogs/customcom/customcom.py:543
243
+ #, docstring
244
+ msgid "Shows a custom command's responses and its settings.\n\n"
245
+ " **Arguments:**\n\n"
246
+ " - `<command>` The custom command to show.\n"
247
+ " "
248
+ msgstr ""
249
+
250
+ #: redbot/cogs/customcom/customcom.py:553
251
+ msgid "I could not not find that custom command."
252
+ msgstr ""
253
+
254
+ #: redbot/cogs/customcom/customcom.py:564
255
+ msgid "Deleted User"
256
+ msgstr ""
257
+
258
+ #: redbot/cogs/customcom/customcom.py:570
259
+ msgid "Random"
260
+ msgstr ""
261
+
262
+ #: redbot/cogs/customcom/customcom.py:570
263
+ msgid "Normal"
264
+ msgstr ""
265
+
266
+ #: redbot/cogs/customcom/customcom.py:572
267
+ msgid "Command: {command_name}\n"
268
+ "Author: {author}\n"
269
+ "Created: {created_at}\n"
270
+ "Type: {type}\n"
271
+ msgstr ""
272
+
273
+ #: redbot/cogs/customcom/customcom.py:584
274
+ msgid "Cooldowns:\n"
275
+ msgstr ""
276
+
277
+ #: redbot/cogs/customcom/customcom.py:586
278
+ msgid "{num} seconds per {period}\n"
279
+ msgstr ""
280
+
281
+ #: redbot/cogs/customcom/customcom.py:589
282
+ msgid "Responses:\n"
283
+ msgstr ""
284
+
285
+ #: redbot/cogs/customcom/customcom.py:687
286
+ msgid "Too many arguments!"
287
+ msgstr ""
288
+
289
+ #: redbot/cogs/customcom/customcom.py:691
290
+ msgid "Arguments must be sequential. Missing arguments: "
291
+ msgstr ""
292
+
293
+ #: redbot/cogs/customcom/customcom.py:717
294
+ msgid "Conflicting colon notation for argument {index}: \"{name1}\" and \"{name2}\"."
295
+ msgstr ""
296
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/en-PT.po ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2019-07-05 22:33+0200\n"
5
+ "PO-Revision-Date: 2019-07-14 02:15\n"
6
+ "Last-Translator: Robert Jansen (Kowlin)\n"
7
+ "Language-Team: Pirate English\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "Generated-By: redgettext 3.0\n"
12
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Generator: crowdin.com\n"
14
+ "X-Crowdin-Project: red-discordbot\n"
15
+ "X-Crowdin-Language: en-PT\n"
16
+ "X-Crowdin-File: /cogs/customcom/locales/messages.pot\n"
17
+ "Language: en_PT\n"
18
+
19
+ #: redbot/cogs/customcom/customcom.py:51
20
+ msgid "Welcome to the interactive random {cc} maker!\\nEvery message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
21
+ msgstr ""
22
+
23
+ #: redbot/cogs/customcom/customcom.py:62
24
+ msgid "Add a random response:"
25
+ msgstr ""
26
+
27
+ #: redbot/cogs/customcom/customcom.py:74
28
+ msgid "Random responses must take the same arguments!"
29
+ msgstr ""
30
+
31
+ #: redbot/cogs/customcom/customcom.py:139
32
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
33
+ msgstr ""
34
+
35
+ #: redbot/cogs/customcom/customcom.py:145
36
+ #: redbot/cogs/customcom/customcom.py:156
37
+ msgid "Response timed out, please try again later."
38
+ msgstr ""
39
+
40
+ #: redbot/cogs/customcom/customcom.py:150
41
+ msgid "What response do you want?"
42
+ msgstr ""
43
+
44
+ #: redbot/cogs/customcom/customcom.py:190
45
+ #, docstring
46
+ msgid "Creates commands used to display text."
47
+ msgstr ""
48
+
49
+ #: redbot/cogs/customcom/customcom.py:204
50
+ #, docstring
51
+ msgid "Custom commands management."
52
+ msgstr ""
53
+
54
+ #: redbot/cogs/customcom/customcom.py:210
55
+ #, docstring
56
+ msgid "Create custom commands.\\n\\n CCs can be enhanced with arguments, see the guide\\n [here](https://red-discordbot.readthedocs.io/en/v3-develop/cog_customcom.html).\\n "
57
+ msgstr ""
58
+
59
+ #: redbot/cogs/customcom/customcom.py:220
60
+ #, docstring
61
+ msgid "Create a CC where it will randomly choose a response!\\n\\n Note: This command is interactive.\\n "
62
+ msgstr ""
63
+
64
+ #: redbot/cogs/customcom/customcom.py:227
65
+ #: redbot/cogs/customcom/customcom.py:248
66
+ msgid "Custom command successfully added."
67
+ msgstr ""
68
+
69
+ #: redbot/cogs/customcom/customcom.py:230
70
+ #: redbot/cogs/customcom/customcom.py:251
71
+ msgid "This command already exists. Use `{command}` to edit it."
72
+ msgstr ""
73
+
74
+ #: redbot/cogs/customcom/customcom.py:238
75
+ #, docstring
76
+ msgid "Add a simple custom command.\\n\\n Example:\\n - `[p]customcom create simple yourcommand Text you want`\\n "
77
+ msgstr ""
78
+
79
+ #: redbot/cogs/customcom/customcom.py:244
80
+ msgid "There already exists a bot command with the same name."
81
+ msgstr ""
82
+
83
+ #: redbot/cogs/customcom/customcom.py:263
84
+ #, docstring
85
+ msgid "Set, edit, or view the cooldown for a custom command.\\n\\n You may set cooldowns per member, channel, or guild. Multiple\\n cooldowns may be set. All cooldowns must be cooled to call the\\n custom command.\\n\\n Example:\\n - `[p]customcom cooldown yourcommand 30`\\n "
86
+ msgstr ""
87
+
88
+ #: redbot/cogs/customcom/customcom.py:276
89
+ #: redbot/cogs/customcom/customcom.py:313
90
+ msgid "That command doesn't exist."
91
+ msgstr ""
92
+
93
+ #: redbot/cogs/customcom/customcom.py:281
94
+ msgid "A {} may call this command every {} seconds"
95
+ msgstr ""
96
+
97
+ #: redbot/cogs/customcom/customcom.py:285
98
+ msgid "This command has no cooldown."
99
+ msgstr ""
100
+
101
+ #: redbot/cogs/customcom/customcom.py:289
102
+ msgid "{} must be one of {}"
103
+ msgstr ""
104
+
105
+ #: redbot/cogs/customcom/customcom.py:293
106
+ msgid "Custom command cooldown successfully edited."
107
+ msgstr ""
108
+
109
+ #: redbot/cogs/customcom/customcom.py:296
110
+ #: redbot/cogs/customcom/customcom.py:328
111
+ msgid "That command doesn't exist. Use `{command}` to add it."
112
+ msgstr ""
113
+
114
+ #: redbot/cogs/customcom/customcom.py:304
115
+ #, docstring
116
+ msgid "Delete a custom command.\\n\\n Example:\\n - `[p]customcom delete yourcommand`\\n "
117
+ msgstr ""
118
+
119
+ #: redbot/cogs/customcom/customcom.py:311
120
+ msgid "Custom command successfully deleted."
121
+ msgstr ""
122
+
123
+ #: redbot/cogs/customcom/customcom.py:318
124
+ #, docstring
125
+ msgid "Edit a custom command.\\n\\n Example:\\n - `[p]customcom edit yourcommand Text you want`\\n "
126
+ msgstr ""
127
+
128
+ #: redbot/cogs/customcom/customcom.py:325
129
+ msgid "Custom command successfully edited."
130
+ msgstr ""
131
+
132
+ #: redbot/cogs/customcom/customcom.py:338
133
+ #, docstring
134
+ msgid "List all available custom commands.\\n\\n The list displays a preview of each command's response, with\\n markdown escaped and newlines replaced with spaces.\\n "
135
+ msgstr ""
136
+
137
+ #: redbot/cogs/customcom/customcom.py:347
138
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
139
+ msgstr ""
140
+
141
+ #: redbot/cogs/customcom/customcom.py:379
142
+ msgid "Custom Command List"
143
+ msgstr ""
144
+
145
+ #: redbot/cogs/customcom/customcom.py:383
146
+ msgid "Page {num}/{total}"
147
+ msgstr ""
148
+
149
+ #: redbot/cogs/customcom/customcom.py:393
150
+ #, docstring
151
+ msgid "Shows a custom command's reponses and its settings."
152
+ msgstr ""
153
+
154
+ #: redbot/cogs/customcom/customcom.py:398
155
+ msgid "I could not not find that custom command."
156
+ msgstr ""
157
+
158
+ #: redbot/cogs/customcom/customcom.py:413
159
+ msgid "Random"
160
+ msgstr ""
161
+
162
+ #: redbot/cogs/customcom/customcom.py:413
163
+ msgid "Normal"
164
+ msgstr ""
165
+
166
+ #: redbot/cogs/customcom/customcom.py:415
167
+ msgid "Command: {command_name}\\nAuthor: {author}\\nCreated: {created_at}\\nType: {type}\\n"
168
+ msgstr ""
169
+
170
+ #: redbot/cogs/customcom/customcom.py:427
171
+ msgid "Cooldowns:\\n"
172
+ msgstr ""
173
+
174
+ #: redbot/cogs/customcom/customcom.py:429
175
+ msgid "{num} seconds per {period}\\n"
176
+ msgstr ""
177
+
178
+ #: redbot/cogs/customcom/customcom.py:432
179
+ msgid "Responses:\\n"
180
+ msgstr ""
181
+
182
+ #: redbot/cogs/customcom/customcom.py:525
183
+ msgid "Too many arguments!"
184
+ msgstr ""
185
+
186
+ #: redbot/cogs/customcom/customcom.py:529
187
+ msgid "Arguments must be sequential. Missing arguments: "
188
+ msgstr ""
189
+
190
+ #: redbot/cogs/customcom/customcom.py:555
191
+ msgid "Conflicting colon notation for argument {index}: \\\"{name1}\\\" and \\\"{name2}\\\"."
192
+ msgstr ""
193
+
testbed/Cog-Creators__Red-DiscordBot/redbot/cogs/customcom/locales/en-US.po ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: red-discordbot\n"
4
+ "POT-Creation-Date: 2019-07-16 01:34+0000\n"
5
+ "PO-Revision-Date: 2020-01-07 21:49\n"
6
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
7
+ "Language-Team: English\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "Generated-By: redgettext 3.1\n"
12
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
13
+ "X-Crowdin-Project: red-discordbot\n"
14
+ "X-Crowdin-Language: en\n"
15
+ "X-Crowdin-File: /customcom/locales/messages.pot\n"
16
+ "Language: en_US\n"
17
+
18
+ #: redbot/cogs/customcom/customcom.py:51
19
+ msgid "Welcome to the interactive random {cc} maker!\\nEvery message you send will be added as one of the random responses to choose from once this {cc} is triggered. To exit this interactive menu, type `{quit}`"
20
+ msgstr ""
21
+
22
+ #: redbot/cogs/customcom/customcom.py:62
23
+ msgid "Add a random response:"
24
+ msgstr ""
25
+
26
+ #: redbot/cogs/customcom/customcom.py:74
27
+ msgid "Random responses must take the same arguments!"
28
+ msgstr ""
29
+
30
+ #: redbot/cogs/customcom/customcom.py:139
31
+ msgid "Do you want to create a 'randomized' custom command? (y/n)"
32
+ msgstr ""
33
+
34
+ #: redbot/cogs/customcom/customcom.py:145
35
+ #: redbot/cogs/customcom/customcom.py:156
36
+ msgid "Response timed out, please try again later."
37
+ msgstr ""
38
+
39
+ #: redbot/cogs/customcom/customcom.py:150
40
+ msgid "What response do you want?"
41
+ msgstr ""
42
+
43
+ #: redbot/cogs/customcom/customcom.py:190
44
+ #, docstring
45
+ msgid "Creates commands used to display text."
46
+ msgstr ""
47
+
48
+ #: redbot/cogs/customcom/customcom.py:204
49
+ #, docstring
50
+ msgid "Custom commands management."
51
+ msgstr ""
52
+
53
+ #: redbot/cogs/customcom/customcom.py:210
54
+ #, docstring
55
+ msgid "Create custom commands.\\n\\n CCs can be enhanced with arguments, see the guide\\n [here](https://red-discordbot.readthedocs.io/en/v3-develop/cog_customcom.html).\\n "
56
+ msgstr ""
57
+
58
+ #: redbot/cogs/customcom/customcom.py:220
59
+ #, docstring
60
+ msgid "Create a CC where it will randomly choose a response!\\n\\n Note: This command is interactive.\\n "
61
+ msgstr ""
62
+
63
+ #: redbot/cogs/customcom/customcom.py:227
64
+ #: redbot/cogs/customcom/customcom.py:248
65
+ msgid "Custom command successfully added."
66
+ msgstr ""
67
+
68
+ #: redbot/cogs/customcom/customcom.py:230
69
+ #: redbot/cogs/customcom/customcom.py:251
70
+ msgid "This command already exists. Use `{command}` to edit it."
71
+ msgstr ""
72
+
73
+ #: redbot/cogs/customcom/customcom.py:238
74
+ #, docstring
75
+ msgid "Add a simple custom command.\\n\\n Example:\\n - `[p]customcom create simple yourcommand Text you want`\\n "
76
+ msgstr ""
77
+
78
+ #: redbot/cogs/customcom/customcom.py:244
79
+ msgid "There already exists a bot command with the same name."
80
+ msgstr ""
81
+
82
+ #: redbot/cogs/customcom/customcom.py:263
83
+ #, docstring
84
+ msgid "Set, edit, or view the cooldown for a custom command.\\n\\n You may set cooldowns per member, channel, or guild. Multiple\\n cooldowns may be set. All cooldowns must be cooled to call the\\n custom command.\\n\\n Example:\\n - `[p]customcom cooldown yourcommand 30`\\n "
85
+ msgstr ""
86
+
87
+ #: redbot/cogs/customcom/customcom.py:276
88
+ #: redbot/cogs/customcom/customcom.py:313
89
+ msgid "That command doesn't exist."
90
+ msgstr ""
91
+
92
+ #: redbot/cogs/customcom/customcom.py:281
93
+ msgid "A {} may call this command every {} seconds"
94
+ msgstr ""
95
+
96
+ #: redbot/cogs/customcom/customcom.py:285
97
+ msgid "This command has no cooldown."
98
+ msgstr ""
99
+
100
+ #: redbot/cogs/customcom/customcom.py:289
101
+ msgid "{} must be one of {}"
102
+ msgstr ""
103
+
104
+ #: redbot/cogs/customcom/customcom.py:293
105
+ msgid "Custom command cooldown successfully edited."
106
+ msgstr ""
107
+
108
+ #: redbot/cogs/customcom/customcom.py:296
109
+ #: redbot/cogs/customcom/customcom.py:328
110
+ msgid "That command doesn't exist. Use `{command}` to add it."
111
+ msgstr ""
112
+
113
+ #: redbot/cogs/customcom/customcom.py:304
114
+ #, docstring
115
+ msgid "Delete a custom command.\\n\\n Example:\\n - `[p]customcom delete yourcommand`\\n "
116
+ msgstr ""
117
+
118
+ #: redbot/cogs/customcom/customcom.py:311
119
+ msgid "Custom command successfully deleted."
120
+ msgstr ""
121
+
122
+ #: redbot/cogs/customcom/customcom.py:318
123
+ #, docstring
124
+ msgid "Edit a custom command.\\n\\n Example:\\n - `[p]customcom edit yourcommand Text you want`\\n "
125
+ msgstr ""
126
+
127
+ #: redbot/cogs/customcom/customcom.py:325
128
+ msgid "Custom command successfully edited."
129
+ msgstr ""
130
+
131
+ #: redbot/cogs/customcom/customcom.py:338
132
+ #, docstring
133
+ msgid "List all available custom commands.\\n\\n The list displays a preview of each command's response, with\\n markdown escaped and newlines replaced with spaces.\\n "
134
+ msgstr ""
135
+
136
+ #: redbot/cogs/customcom/customcom.py:347
137
+ msgid "There are no custom commands in this server. Use `{command}` to start adding some."
138
+ msgstr ""
139
+
140
+ #: redbot/cogs/customcom/customcom.py:379
141
+ msgid "Custom Command List"
142
+ msgstr ""
143
+
144
+ #: redbot/cogs/customcom/customcom.py:383
145
+ msgid "Page {num}/{total}"
146
+ msgstr ""
147
+
148
+ #: redbot/cogs/customcom/customcom.py:393
149
+ #, docstring
150
+ msgid "Shows a custom command's reponses and its settings."
151
+ msgstr ""
152
+
153
+ #: redbot/cogs/customcom/customcom.py:398
154
+ msgid "I could not not find that custom command."
155
+ msgstr ""
156
+
157
+ #: redbot/cogs/customcom/customcom.py:413
158
+ msgid "Random"
159
+ msgstr ""
160
+
161
+ #: redbot/cogs/customcom/customcom.py:413
162
+ msgid "Normal"
163
+ msgstr ""
164
+
165
+ #: redbot/cogs/customcom/customcom.py:415
166
+ msgid "Command: {command_name}\\nAuthor: {author}\\nCreated: {created_at}\\nType: {type}\\n"
167
+ msgstr ""
168
+
169
+ #: redbot/cogs/customcom/customcom.py:427
170
+ msgid "Cooldowns:\\n"
171
+ msgstr ""
172
+
173
+ #: redbot/cogs/customcom/customcom.py:429
174
+ msgid "{num} seconds per {period}\\n"
175
+ msgstr ""
176
+
177
+ #: redbot/cogs/customcom/customcom.py:432
178
+ msgid "Responses:\\n"
179
+ msgstr ""
180
+
181
+ #: redbot/cogs/customcom/customcom.py:526
182
+ msgid "Too many arguments!"
183
+ msgstr ""
184
+
185
+ #: redbot/cogs/customcom/customcom.py:530
186
+ msgid "Arguments must be sequential. Missing arguments: "
187
+ msgstr ""
188
+
189
+ #: redbot/cogs/customcom/customcom.py:556
190
+ msgid "Conflicting colon notation for argument {index}: \\\"{name1}\\\" and \\\"{name2}\\\"."
191
+ msgstr ""
192
+