diff --git a/logviewer/logviewer.py b/logviewer/logviewer.py index 6b60d5e..5a521dc 100644 --- a/logviewer/logviewer.py +++ b/logviewer/logviewer.py @@ -153,12 +153,22 @@ async def set_encryption_key(self, ctx: commands.Context, *, key: str): @checks.has_permissions(PermissionLevel.OWNER) async def set_port(self, ctx: commands.Context, port: int): """ - Set the webserer port for Logviewer to listen on. Webserver must be restarted for this change to take effect. + Set the webserver port for Logviewer to listen on. Webserver must be restarted for this change to take effect. """ self.config["port"] = port await self.update_config() await ctx.send("Logviewer port set.") + @logviewer_config.command(name="pagination") + @checks.has_permissions(PermissionLevel.OWNER) + async def set_pagination(self, ctx: commands.Context, pagination: int): + """ + Set the number of logs to display per page. Webserver must be restarted for this change to take effect. + """ + self.config["pagination"] = pagination + await self.update_config() + await ctx.send("Logviewer pagination set.") + @logviewer_config.group(name="remove", aliases=["reset", "delete"]) @checks.has_permissions(PermissionLevel.OWNER) async def remove_config(self, ctx: commands.Context):