|
|
@ -2,6 +2,7 @@ import asyncio
|
|
|
|
import datetime
|
|
|
|
import datetime
|
|
|
|
import string
|
|
|
|
import string
|
|
|
|
from contextlib import closing
|
|
|
|
from contextlib import closing
|
|
|
|
|
|
|
|
from typing import Optional
|
|
|
|
|
|
|
|
|
|
|
|
import discord
|
|
|
|
import discord
|
|
|
|
import mariadb
|
|
|
|
import mariadb
|
|
|
@ -180,8 +181,8 @@ async def restart(ctx):
|
|
|
|
await client.logout()
|
|
|
|
await client.logout()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@client.command(name='help')
|
|
|
|
@client.command(name='help', aliases=["Help"])
|
|
|
|
async def _help(ctx, *, command: str = None):
|
|
|
|
async def _help(ctx, *, command: Optional[str] = None):
|
|
|
|
"""Shows help about a command or the bot"""
|
|
|
|
"""Shows help about a command or the bot"""
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -206,7 +207,7 @@ async def _help(ctx, *, command: str = None):
|
|
|
|
@client.command(name="prefix", aliases=["Prefix"])
|
|
|
|
@client.command(name="prefix", aliases=["Prefix"])
|
|
|
|
@guild_only()
|
|
|
|
@guild_only()
|
|
|
|
@has_permissions(manage_guild=True)
|
|
|
|
@has_permissions(manage_guild=True)
|
|
|
|
async def change_prefix(ctx, new: str = None):
|
|
|
|
async def change_prefix(ctx, new: Optional[str] = None):
|
|
|
|
"""View/Change Guild Prefix"""
|
|
|
|
"""View/Change Guild Prefix"""
|
|
|
|
|
|
|
|
|
|
|
|
# As long as a new prefix has been given and is less than 5 characters
|
|
|
|
# As long as a new prefix has been given and is less than 5 characters
|
|
|
|