FunkyBot/libs/Guilds.py

15 lines
393 B
Python
Raw Normal View History

import discord
from discord.ext import commands
class Guilds:
def __init__(self):
pass
def get_guild(self, bot: commands.Bot) -> discord.Guild:
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