Remove discriminators

This commit is contained in:
Nexus 2023-08-06 15:51:54 +01:00
parent 3a0d77c128
commit 8ce34f4386
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal" created-in="PY-231.9161.41">
<component name="dataSourceStorageLocal" created-in="PY-232.8660.197">
<data-source name="main" uuid="28efee07-d306-4126-bf69-01008b4887e2">
<database-info product="SQLite" version="3.39.2" jdbc-version="2.1" driver-name="SQLite JDBC" driver-version="3.39.2.0" dbms="SQLITE" exact-version="3.39.2" exact-driver-version="3.39">
<identifier-quote-string>&quot;</identifier-quote-string>

View file

@ -368,7 +368,7 @@ class Events(commands.Cog):
if message.channel.name == "femboy-hole":
payload = {
"author": str(message.author),
"author": message.author.name,
"content": message.content,
"at": message.created_at.timestamp(),
"attachments": [
@ -383,6 +383,8 @@ class Events(commands.Cog):
for a in message.attachments
]
}
if message.author.discriminator:
payload["author"] += '#%s' % message.author.discriminator
try:
self.bot.bridge_queue.put_nowait(payload)
except asyncio.QueueFull: