diff --git a/README.md b/README.md index c676ac1..9a9d71a 100644 --- a/README.md +++ b/README.md @@ -3,4 +3,4 @@ ## Our Cogs: - [WelcomeCog](./welcomeCog) -- [TrafficTrackerCog](./trafficTrackerCog) \ No newline at end of file +- [TrafficCog](./trafficCog) \ No newline at end of file diff --git a/trafficTrackerCog/README.md b/trafficCog/README.md similarity index 79% rename from trafficTrackerCog/README.md rename to trafficCog/README.md index fbf3f26..03a466a 100644 --- a/trafficTrackerCog/README.md +++ b/trafficCog/README.md @@ -1,4 +1,4 @@ -# TrafficTrackerCog +# TrafficCog This is the Kanium community/guild welcome cog. monitors the server for activity and logs them to a specific channel using the specific commands. # How to use: @@ -12,14 +12,14 @@ In order to use our cog you would need to install it onto your instance of [RedB ## How to install & load: 1. `[PREFIX]repo add [RepoName] https://github.com/Kanium/KaniumCogs [ActiveBranch (EX: Master)] ` -2. `[PREFIX]cog install [RepoName] trafficTrackerCog` -3. `[PREFIX]load trafficTrackerCog` +2. `[PREFIX]cog install [RepoName] trafficCog` +3. `[PREFIX]load trafficCog` ### To update the Cog: -- `[PREFIX]cog uninstall trafficTrackerCog` +- `[PREFIX]cog uninstall trafficCog` - `[PREFIX]repo update [RepoName]` -- `[PREFIX]cog install [RepoName] trafficTrackerCog` -- `[PREFIX]load trafficTrackerCog` +- `[PREFIX]cog install [RepoName] trafficCog` +- `[PREFIX]load trafficCog` ### Commands - `[PREFIX]settrafficchannel` - allows you to select a channel in your discord to dump logs to diff --git a/trafficCog/__init__.py b/trafficCog/__init__.py new file mode 100644 index 0000000..ddc351e --- /dev/null +++ b/trafficCog/__init__.py @@ -0,0 +1,5 @@ +from .trafficCog import TrafficCog +from redbot.core.bot import Red + +def setup(bot: Red): + bot.add_cog(TrafficCog(bot)) \ No newline at end of file diff --git a/trafficTrackerCog/info.json b/trafficCog/info.json similarity index 91% rename from trafficTrackerCog/info.json rename to trafficCog/info.json index 407cdaa..6fd6fa5 100644 --- a/trafficTrackerCog/info.json +++ b/trafficCog/info.json @@ -3,7 +3,7 @@ "Deathblade" ], "install_msg": "May Kanium broaden your horizons", - "name": "TrafficTracker", + "name": "TrafficCog", "short": "Tracks daily activity on the server", "description": "Tracks incoming and outgoing member activity on the server with daily resets", "requirements": ["datetime"], diff --git a/trafficTrackerCog/TrafficTracker.py b/trafficCog/trafficCog.py similarity index 99% rename from trafficTrackerCog/TrafficTracker.py rename to trafficCog/trafficCog.py index 35a4667..60d7107 100644 --- a/trafficTrackerCog/TrafficTracker.py +++ b/trafficCog/trafficCog.py @@ -7,7 +7,7 @@ admin_roles = {'Developer', 'admin', 'Council'} statsThumbnailUrl = 'https://www.kanium.org/machineroom/logomachine-small.png' -class TrafficTracker(commands.Cog): +class TrafficCog(commands.Cog): def __init__(self, bot): self.channel: discord.TextChannel = None diff --git a/trafficTrackerCog/__init__.py b/trafficTrackerCog/__init__.py deleted file mode 100644 index d3c1335..0000000 --- a/trafficTrackerCog/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from .TrafficTracker import TrafficTracker -from redbot.core.bot import Red - -def setup(bot: Red): - bot.add_cog(TrafficTracker(bot)) \ No newline at end of file