Skip to content

Instantly share code, notes, and snippets.

View Tobotimus's full-sized avatar

Toby Harradine Tobotimus

View GitHub Profile
@Tobotimus
Tobotimus / roadmap.md
Last active March 1, 2019 00:36
3.1 Roadmap

So, 3.1's been talked about for quite some time, but I'm guessing many people still have a lot of questions. Users asking "what will be included?", devs asking "what should I work on?", and QA asking "what should I be reviewing?". Hopefully this will help answer those questions, and a few more. It'll also be a bit of a test of my novice-like project management skills 😬

Whilst reading this, just remember a few things:

  • Goals are goals, not deadlines. Most of us have been around open source long enough to know deadlines are rarely adhered to 😄
  • A sprint/release having a particular focus does not mean everything which doesn't apply to that focus is going to be excluded or ignored. For example, if the main focus of a sprint is Audio, that doesn't mean a QA member is going to be forced to review audio PRs exclusively, or that all non-audio PRs are going to be ignored. We have lots of people involved in this project with a vast array of skills and interests, and I don't take that for grant
@Tobotimus
Tobotimus / trivialists_to_yaml.py
Last active October 17, 2017 00:59
Script to convert Red's v2 trivia list format to YAML (http://www.yaml.org/).
"""Script for converting v2 trivia list format to YAML.
Trivia lists must be .txt files placed in a subdirectory named `lists`, and
their corresponding .yaml files will be placed in a subdirectory named `yamls`.
"""
import sys
import pathlib
import yaml
from yaml.events import (NodeEvent, AliasEvent, ScalarEvent,
CollectionStartEvent)
async def delete_n_messages(channel, amount, check=None, is_bot=True):
"""Delete a specific amount of messages.
Only messages from the past 14 days will be deleted.
If the bot is not a bot account, messages will be deleted one at a time.
Parameters
----------
amount: int

All of these tests were done before using any modlog settings.

Commands

Any which use checks.admin_or_voice_permissions

  • Traceback:
E:\Documents\Python Projects\Red-DiscordBot-v3\Bot\redbot\cogs\mod\checks.py:33: RuntimeWarning: coroutine 'Red.is_owner' was never awaited
  if ctx.bot.is_owner(author) or guild.owner == author: