2025-06-23 12:56:09 +00:00
|
|
|
import discord
|
|
|
|
|
from discord.ext import commands
|
|
|
|
|
|
2025-06-20 14:28:44 +00:00
|
|
|
class Guilds:
|
|
|
|
|
def __init__(self):
|
|
|
|
|
pass
|
|
|
|
|
|
2025-06-23 12:56:09 +00:00
|
|
|
async def get_guild(self, bot: commands.Bot) -> discord.Guild:
|
2025-06-20 14:28:44 +00:00
|
|
|
guild = None
|
|
|
|
|
for g in bot.guilds:
|
|
|
|
|
if bot.dev_mode and g.name == 'OgmaBotDev':
|
|
|
|
|
guild = g
|
|
|
|
|
elif g.name == 'The Penguin Collective':
|
|
|
|
|
guild = g
|
|
|
|
|
return guild
|