Skip to content

Commit 74d34a4

Browse files
committed
updating for pylint
1 parent c5ed76c commit 74d34a4

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

src/guildmaster/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
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"

src/guildmaster/cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
# guildmaster.cli
3+
A command line interface for managing Discord server tasks and settings.
4+
"""
15
import sys
26
import fire
37
from guildmaster.tasks.role_manager import DiscordRoleManager
@@ -13,6 +17,10 @@ def __init__(self):
1317

1418

1519
def 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:

src/guildmaster/client/discord_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
"""
16
import os
27
import discord
38
from discord.ext import commands
@@ -6,13 +11,22 @@
611

712

813
class 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()

src/guildmaster/config/logger.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
"""
2+
A module for configuring logging in the GuildMaster application.
3+
"""
14
import logging
25

36

47
class 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
"""

src/guildmaster/tasks/role_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
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+
"""
16
import asyncio
27
import discord
38
from tqdm.asyncio import tqdm

0 commit comments

Comments
 (0)