feat(bot): ✨ Terminate all processes after p.shutdown.
This commit is contained in:
@@ -9,8 +9,6 @@ from discord.utils import find
|
||||
|
||||
from tortoise import transactions, exceptions
|
||||
|
||||
import asyncpg.exceptions
|
||||
|
||||
import aiohttp
|
||||
|
||||
import orjson
|
||||
@@ -19,7 +17,7 @@ from payphone import bot
|
||||
from payphone.db import utils as dbutils, models
|
||||
from payphone.cogs import base
|
||||
from payphone.cogs.calls import embeds
|
||||
from payphone.core import constants, checks, censorship, formatting, utils
|
||||
from payphone.core import constants, checks, censorship, formatting
|
||||
|
||||
|
||||
class Calls(base.Cog):
|
||||
@@ -877,7 +875,10 @@ class Calls(base.Cog):
|
||||
orjson.dumps(message_dict),
|
||||
)
|
||||
|
||||
other_channel = await models.Channel.get(id=message.propagation_channel_id)
|
||||
other_channel = await models.Channel.get_or_none(id=message.propagation_channel_id)
|
||||
|
||||
if other_channel is None:
|
||||
return
|
||||
|
||||
if other_channel.call_id != message.call_id:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user