mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 00:07:55 +00:00
Merge branch 'master' of https://github.com/xBelladonna/PluralKit
This commit is contained in:
commit
de1a67d871
2 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ def run():
|
||||||
print("{} servers".format(len(client.guilds)))
|
print("{} servers".format(len(client.guilds)))
|
||||||
print("{} shards".format(client.shard_count or 1))
|
print("{} shards".format(client.shard_count or 1))
|
||||||
|
|
||||||
await client.change_presence(activity=discord.Game(name="pk;help"))
|
await client.change_presence(activity=discord.Game(name="kek;help"))
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_message(message: discord.Message):
|
async def on_message(message: discord.Message):
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ from pluralkit.system import System
|
||||||
|
|
||||||
def next_arg(arg_string: str) -> Tuple[str, Optional[str]]:
|
def next_arg(arg_string: str) -> Tuple[str, Optional[str]]:
|
||||||
# A basic quoted-arg parser
|
# A basic quoted-arg parser
|
||||||
|
|
||||||
for quote in "“‟”":
|
for quote in "“‟”":
|
||||||
arg_string = arg_string.replace(quote, "\"")
|
arg_string = arg_string.replace(quote, "\"")
|
||||||
|
|
||||||
|
|
@ -211,7 +211,7 @@ async def run_command(ctx: CommandContext, func):
|
||||||
|
|
||||||
|
|
||||||
async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool:
|
async def command_dispatch(client: discord.Client, message: discord.Message, conn) -> bool:
|
||||||
prefix = "^(pk(;|!)|<@{}> )".format(client.user.id)
|
prefix = "^(kek(;|!)|<@{}> )".format(client.user.id)
|
||||||
regex = re.compile(prefix, re.IGNORECASE)
|
regex = re.compile(prefix, re.IGNORECASE)
|
||||||
|
|
||||||
cmd = message.content
|
cmd = message.content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue