Exemple #1
0
from discord import AllowedMentions
from loguru import logger as log

from xythrion.bot import Xythrion
from xythrion.constants import Config
from xythrion.extensions import EXTENSIONS

bot = Xythrion(
    command_prefix="\\",
    case_insensitive=True,
    help_command=None,
    allowed_mentions=AllowedMentions(everyone=False),
)

for extension in EXTENSIONS:
    bot.load_extension(extension)
    log.info(f'Loaded extension "{extension}"')

bot.run(Config.TOKEN)
Exemple #2
0
def setup(bot: Xythrion) -> None:
    """The necessary function for loading in cogs within this folder."""
    bot.add_cog(Graphing(bot))
    bot.add_cog(Randoms(bot))
    bot.add_cog(Vectorization(bot))
Exemple #3
0
def setup(bot: Xythrion) -> None:
    """The necessary function for loading in cogs within this folder."""
    bot.add_cog(Factorio(bot))
    bot.add_cog(Warframe(bot))
Exemple #4
0
def setup(bot: Xythrion) -> None:
    """The necessary function for loading in cogs within this folder."""
    bot.add_cog(Dates(bot))
    bot.add_cog(Links(bot))
    bot.add_cog(Notes(bot))
    bot.add_cog(Snippets(bot))
Exemple #5
0
def setup(bot: Xythrion) -> None:
    """The necessary function for loading in cogs within this folder."""
    bot.add_cog(Reddit(bot))
    bot.add_cog(Weather(bot))
    bot.add_cog(Tinyy(bot))
Exemple #6
0
def setup(bot: Xythrion) -> None:
    """The necessary function for loading in extensions within this folder."""
    bot.add_cog(AntiCommandSpam(bot))
    bot.add_cog(Development(bot))
    bot.add_cog(Manager(bot))
    bot.add_cog(Warnings(bot))