mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
Remove from __main__ import ... statements (#1956)
This commit is contained in:
committed by
Toby Harradine
parent
e874e6aa01
commit
a42c4fb215
@@ -7,7 +7,6 @@ from copy import deepcopy
|
||||
from .utils import checks
|
||||
from cogs.utils.chat_formatting import pagify, box
|
||||
from enum import Enum
|
||||
from __main__ import send_cmd_help
|
||||
import os
|
||||
import time
|
||||
import logging
|
||||
@@ -302,7 +301,7 @@ class Economy:
|
||||
async def _bank(self, ctx):
|
||||
"""Bank operations"""
|
||||
if ctx.invoked_subcommand is None:
|
||||
await send_cmd_help(ctx)
|
||||
await self.bot.send_cmd_help(ctx)
|
||||
|
||||
@_bank.command(pass_context=True, no_pm=True)
|
||||
async def register(self, ctx):
|
||||
@@ -626,7 +625,7 @@ class Economy:
|
||||
for k, v in settings.items():
|
||||
msg += "{}: {}\n".format(k, v)
|
||||
msg += "```"
|
||||
await send_cmd_help(ctx)
|
||||
await self.bot.send_cmd_help(ctx)
|
||||
await self.bot.say(msg)
|
||||
|
||||
@economyset.command(pass_context=True)
|
||||
|
||||
Reference in New Issue
Block a user