Answers for "SEE NAMES OF SERVERS BOT IS IN"

0

SEE NAMES OF SERVERS BOT IS IN

import discord
from discord.ext import commands

client = discord.Client
activeservers = client.guilds

class OwnerCommands(commands.Cog):

    def __init__(self, client):
        self.client = client

    @commands.Cog.listener()
    async def on_ready(self):
        print("OwnerCommands Is Ready")

    @commands.command()
    async def servers(self, ctx):
        await ctx.send(activeservers)
        print(activeservers)

def setup(client):
    client.add_cog(OwnerCommands(client))
Posted by: Guest on September-18-2021

Code answers related to "SEE NAMES OF SERVERS BOT IS IN"

Browse Popular Code Answers by Language