|  | Commit message (Collapse) | Author | Age | Lines | 
|---|
| | |  | 
| | |  | 
| | |  | 
| |\  
| | 
| | 
| | | redis_persistence | 
| | |\ |  | 
| | | |\ |  | 
| | | | |\  
| | | |/  
| | |/| |  | 
| | | |\ \ |  | 
| | | | |\ \  
| | | |/ /  
| | |/| | |  | 
| | | |\ \ \  
| | | | | | 
| | | | | | | Increase snekbox re eval timeout to 30 seconds | 
| | | | |\ \ \  
| | | |/ / /  
| | |/| | | |  | 
| | | | | | | |  | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | publish can take place | 
| | | |\ \ \ \  
| | | | | | | 
| | | | | | | | Add message publishing to Reddit cog | 
| | | | |\ \ \ \  
| | | |/ / / /  
| | |/| | | | |  | 
| | | |\ \ \ \ \  
| | | | | | | | 
| | | | | | | | | Add mutability.md tag | 
| | | | |\ \ \ \ \  
| | | |/ / / / /  
| | |/| | | | | |  | 
| | | |\ \ \ \ \ \  
| | | | | | | | | 
| | | | | | | | | | Use `send_help` to ensure that our help command is correctly invoked | 
| | | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | 
| | | | | | | | | | As @mathsman5133 pointed out, it's better to use the `Command`-instance
we typically already have in the current context than to rely on parsing
the qualified name again.
The invocation is now done as: `await ctx.send_help(ctx.command)` | 
| | | |/ / / / / /  
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | |   
| | | | | | | | | After the refactoring of the help command, we need to use the built-in
method of calling the help command: `Context.send_help`. As an argument,
the qualified name (a string containing the full command path, including
parents) of the command can be passed.
Examples:
- await ctx.send_help("reminders edit")
This would send a help embed with information on `!reminders edit` to
the Context.
- await ctx.send_help(ctx.command.qualified_name)
This would extract the qualified name of the command, which is the full
command path, and send a help embed to Context.
- await ctx.send_help()
This will send the main "root" help embed to the Context. | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | | Co-authored-by: kwzrd <[email protected]> | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | |\ \  
| | | | | | |/ /  
| | | | | |/| | |  | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | | Add stat increaser to PEP and maillist posting. | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | | Co-authored-by: Mark <[email protected]> | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | | Co-authored-by: Joseph Banks <[email protected]> | 
| | | | | | | | | 
| | | | | | | | 
| | | | | | | | | Co-authored-by: Joseph Banks <[email protected]> | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | | | |  | 
| | | | | | | |/  
| | | | | |/|   
| | | | | | |   
| | | | | | | | Collect Guild boost amount + level and post it to StatsD every hour in task. Added starting to cog `__init__.py` and stopping to `cog_unload`. | 
| |/ / / / / / |  | 
| | | | | | | |  | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | This commit just alters existing code to work with the new interface,
and with async. All tests are passing successfully. | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | - All methods will now do a validation check
- Complete interface spec added to class:
  - .update
  - .clear
  - .pop
  - .to_dict
  - .length
  - .contains
  - .delete
  - .get
  - .set | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | The .set and .get will accept ints, floats, and strings. These will be
converted into "typestrings", which is basically just a simple format
that's been invented for this object.
For example, an int looks like `b"i|2423"`. Note how it is still stored
as a bytestring (like everything in Redis), but because of this prefix
we are able to coerce it into the type we want on the way out of the db. | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | This will help catch anything that tries to get/set an attribute/method
which doesn't exist. It'll also catch missing/too many parameters being
passed to methods. | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | Because some of the redis pool/connection methods return futures rather
than being coroutines, the redis pool had to be mocked using the
CustomMockMixin so it could take advantage of `additional_spec_asyncs`
to use AsyncMocks for these future-returning methods. | 
| | | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | 
| | | | | | | The fix is to mock the loop and pass it to the Bot. It will then set
it as `self.loop` rather than trying to get an event loop from asyncio.
The `create_task` patch has been moved to this loop mock rather than
being done in MockBot to ensure that it applies to anything calling it
when instantiating the Bot. |