Updated help messages.

doc_update
Joey Hines 2018-08-18 12:01:59 -05:00
parent 65f512304a
commit 8c3e1913b7
4 changed files with 18 additions and 25 deletions

2
bot.py
View File

@ -63,7 +63,7 @@ async def on_command_error(error, ctx):
if "Admin_Commands" in ctx.cog.__str__():
return
if isinstance(error, commands.CommandNotFound):
error_str = 'Command not found, ding dongs like you can use ?help to see all the commands this bot can do.'
return
elif isinstance(error, commands.CommandOnCooldown):
return
elif isinstance(error, commands.UserInputError):

View File

@ -36,8 +36,7 @@ class Add_Commands:
@commands.cooldown(5, 60, commands.BucketType.user)
async def add_base(self, ctx, x_pos: int, z_pos: int, *args):
"""
Adds your base to the database.
The name is optional.
Adds your base to the database. The base name is optional if this your first base.
?add_base [X Coordinate] [Z Coordinate] [Base Name]
"""
@ -62,8 +61,7 @@ class Add_Commands:
@commands.cooldown(5, 60, commands.BucketType.user)
async def add_shop(self, ctx, x_pos: int, z_pos: int, *args):
"""
Adds your shop to the database.
The name is optional.
Adds your shop to the database. The name is shop optional if this your first shop.
?add_shop [X Coordinate] [Z Coordinate] [Shop Name]
"""
@ -116,8 +114,8 @@ class Add_Commands:
@commands.cooldown(5, 60, commands.BucketType.user)
async def add_item(self, ctx, item_name: str, quantity: int, diamond_price: int, *args):
"""
Adds an item to a shop's inventory.
Quantity for Diamond Price.
Adds an item to a shop's inventory. If you have one shop, the shop name is not required.
Quantity for Diamond Price. eg. 32 Dirt for 1D
?additem [Item Name] [Quantity] [Price] [Shop name]
"""
shop_name = get_name(args)

View File

@ -6,7 +6,9 @@ from bot import bot_commands
class Edit_Commands:
"""
Commands for editing your stuff in Geoffrey.
"""
def __init__(self, bot):
self.bot = bot
@ -15,7 +17,6 @@ class Edit_Commands:
async def edit_pos(self, ctx, x_pos: int, y_pos: int, *args):
"""
Edits the position of a location
?edit_pos [X Coordinate] [Z Coordinate] [Location Name]
"""
loc = get_name(args)
@ -33,7 +34,6 @@ class Edit_Commands:
async def edit_tunnel(self, ctx, tunnel_color: str, tunnel_number: int, *args):
"""
Edits the tunnel of a location
?edit_tunnel [Tunnel Color] [Tunnel Number] [Location Name]
"""
loc = get_name(args)
@ -54,8 +54,7 @@ class Edit_Commands:
async def edit_name(self, ctx, new_name: str, current_name: str):
"""
Edits the name of a location
IF A NAME HAS SPACES IN IT YOU NEED TO WRAP IT IN QUOTATION MARKS. ie "Cool Shop 123"
IF A NAME HAS SPACES IN IT YOU NEED TO WRAP IT IN QUOTATION MARKS. eg. "Cool Shop 123"
?edit_name [New Name] [Current Name]
"""
try:

View File

@ -56,7 +56,6 @@ class Search_Commands:
Finds all the locations around a certain point.
The radius defaults to 200 blocks if no value is given.
Default dimension is overworld.
?find_around [X Coordinate] [Z Coordinate] [Radius] [Optional Flags]
Optional Flags:
@ -97,7 +96,6 @@ class Search_Commands:
async def selling(self, ctx, item_name: str):
"""
Lists all the shops selling an item
?selling [item]
"""
try:
@ -111,9 +109,7 @@ class Search_Commands:
async def info(self, ctx, * args):
"""
Displays info about a location.
If the location is a shop, it displays the shop's inventory.
?info [Location Name]
"""
loc = get_name(args)