Fixed addbase command, was adding shops.
parent
6622b98830
commit
42b2a2cc93
|
@ -107,10 +107,8 @@ async def addbase(ctx, name: str, x_pos: int, y_pos: int, z_pos: int, * args):
|
||||||
if '-d' in flags:
|
if '-d' in flags:
|
||||||
dimension = flags['-d']
|
dimension = flags['-d']
|
||||||
|
|
||||||
|
|
||||||
await bot.say('Test ' + tunnel)
|
|
||||||
try:
|
try:
|
||||||
shop = database_interface.add_shop(ctx.message.author.id, name, x_pos, y_pos, z_pos, tunnel, dimension)
|
base = database_interface.add_base(ctx.message.author.id, name, x_pos, y_pos, z_pos, tunnel, dimension)
|
||||||
except LocationInitError:
|
except LocationInitError:
|
||||||
raise commands.UserInputError
|
raise commands.UserInputError
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue