File tree Expand file tree Collapse file tree 5 files changed +38
-0
lines changed
Expand file tree Collapse file tree 5 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ """
2+ This is the __init__.py file for the GuildMaster package.
3+ It initializes the package and sets the version.
4+ """
15__version__ = "1.1.1"
Original file line number Diff line number Diff line change 1+ """
2+ # guildmaster.cli
3+ A command line interface for managing Discord server tasks and settings.
4+ """
15import sys
26import fire
37from guildmaster .tasks .role_manager import DiscordRoleManager
@@ -13,6 +17,10 @@ def __init__(self):
1317
1418
1519def main ():
20+ """
21+ Main entry point for the GuildMaster CLI.
22+ Initializes the command line interface and handles exceptions.
23+ """
1624 try :
1725 fire .Fire (name = "guildmaster" , component = GuildMasterCommands )
1826 except KeyboardInterrupt :
Original file line number Diff line number Diff line change 1+ """
2+ # guildmaster.client.discord_client
3+ A module for managing the Discord client connection.
4+ This module provides functionality to connect to Discord using a bot token.
5+ """
16import os
27import discord
38from discord .ext import commands
611
712
813class DiscordClient :
14+ """
15+ A class for managing the Discord client connection.
16+ """
917 def __init__ (self ):
1018 intents = discord .Intents .default ()
1119 intents .members = True
1220 self .bot = commands .Bot (command_prefix = "!" , intents = intents )
1321
1422 def run (self ):
23+ """
24+ Run the Discord bot using the provided token.
25+ """
1526 self .bot .run (TOKEN )
1627
1728 def close (self ):
29+ """
30+ Close the Discord bot connection.
31+ """
1832 self .bot .close ()
Original file line number Diff line number Diff line change 1+ """
2+ A module for configuring logging in the GuildMaster application.
3+ """
14import logging
25
36
47class Logger :
8+ """
9+ A class for setting up a logger for the GuildMaster application.
10+ """
11+
512 @staticmethod
613 def setup_logger (name : str , level : int = logging .INFO ) -> logging .Logger :
714 """
Original file line number Diff line number Diff line change 1+ """
2+ # guildmaster.tasks.role_manager
3+ A module for managing roles in a Discord server.
4+ This module provides functionality to assign a specific role to all members of a Discord server.
5+ """
16import asyncio
27import discord
38from tqdm .asyncio import tqdm
You can’t perform that action at this time.
0 commit comments