From c0fc728d20fe17a83b60c99af9f262841c3843cb Mon Sep 17 00:00:00 2001 From: un1xx Date: Wed, 20 Mar 2024 21:14:40 +0530 Subject: [PATCH] updates --- exts/Banking.py | 18 ++++++++++++++++++ exts/REPL.py | 3 ++- requirements.txt | 3 ++- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 exts/Banking.py diff --git a/exts/Banking.py b/exts/Banking.py new file mode 100644 index 0000000..7779d16 --- /dev/null +++ b/exts/Banking.py @@ -0,0 +1,18 @@ +import datetime +import random +from typing import List, Literal, Optional + +import discord +from botclass import CustomCtx, Brahmos +from discord.ext import commands +import pnwkit + + +class Banking(commands.Cog): + def __init__(self, bot: Brahmos): + self.bot = bot + + + +async def setup(bot: Brahmos): + await bot.add_cog(Banking(bot)) diff --git a/exts/REPL.py b/exts/REPL.py index baa8176..eb3a4cd 100644 --- a/exts/REPL.py +++ b/exts/REPL.py @@ -99,7 +99,8 @@ class REPL(commands.Cog): return pgn = Paginator(pages=pages, pagetype="text") - await pgn.start(ctx=ctx) + if pages: + await pgn.start(ctx=ctx) @commands.command(hidden=True) @commands.is_owner() diff --git a/requirements.txt b/requirements.txt index 901d1ef..5fe13ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ uvloop jishaku pytz psutil -python-logging-discord-handler \ No newline at end of file +python-logging-discord-handler +pnwkit-py \ No newline at end of file