From 4743b959ec6d20cc6e8e18ff77c0d7b84aaf3fd8 Mon Sep 17 00:00:00 2001 From: dolfies Date: Mon, 1 Nov 2021 19:49:19 -0400 Subject: [PATCH] Update inbuild examples --- discord/__main__.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/discord/__main__.py b/discord/__main__.py index 513b0cb38..51fee43cd 100644 --- a/discord/__main__.py +++ b/discord/__main__.py @@ -57,7 +57,7 @@ from discord.ext import commands import discord import config -class Bot(commands.{base}): +class Bot(commands.Bot): def __init__(self, **kwargs): super().__init__(command_prefix=commands.when_mentioned_or('{prefix}'), **kwargs) for cog in config.cogs: @@ -214,8 +214,7 @@ def newbot(parser, args): try: with open(str(new_directory / 'bot.py'), 'w', encoding='utf-8') as fp: - base = 'Bot' if not args.sharded else 'AutoShardedBot' - fp.write(_bot_template.format(base=base, prefix=args.prefix)) + fp.write(_bot_template.format(prefix=args.prefix)) except OSError as exc: parser.error(f'could not create bot file ({exc})') @@ -268,7 +267,6 @@ def add_newbot_args(subparser): parser.add_argument('name', help='the bot project name') parser.add_argument('directory', help='the directory to place it in (default: .)', nargs='?', default=Path.cwd()) parser.add_argument('--prefix', help='the bot prefix (default: $)', default='$', metavar='') - parser.add_argument('--sharded', help='whether to use AutoShardedBot', action='store_true') parser.add_argument('--no-git', help='do not create a .gitignore file', action='store_true', dest='no_git') def add_newcog_args(subparser):