import discord
from discord import Member
from discord import Message
from discord import User
from discord.ext import commands
from discord.ext import commands, tasks
tdict = {}
@client.event
async def on_ready():
#готовность
client.run(TOKEN)
import discord
from discord import Member
from discord import Message
from discord import User
class voice(commands.Cog):
def __init__(self, client):
self.client = client
@commands.Cog.listener()
async def on_voice_state_update(self, member, before, after):
print(tdict) #Вот тут мне нужно использовать переменную из файла main.py под названием tdict
def setup(client):
client.add_cog(voice(client))
import discord
from discord import Member
from discord import Message
from discord import User
from discord.ext import commands
from discord.ext import commands, tasks
tdict = {}
Можно ли ссылку на гайд ? Или что ещё .