changed name of method

This commit is contained in:
Fadi Atamny 2020-05-03 20:18:24 +03:00
parent 288cb0efa4
commit 87a8c59162
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ In order to use our cog you would need to install it onto your instance of [RedB
- `[PREFIX]load trafficTrackerCog` - `[PREFIX]load trafficTrackerCog`
### Commands ### Commands
- `[PREFIX]setchannel` - allows you to select a channel in your discord to dump logs to - `[PREFIX]settrafficchannel` - allows you to select a channel in your discord to dump logs to
- `[PREFIX]stats` - prints the statistics that the cog has gathered. - `[PREFIX]stats` - prints the statistics that the cog has gathered.
- `[PREFIX]resetstats` - allows for a hard reset of the stats - `[PREFIX]resetstats` - allows for a hard reset of the stats
- `[PREFIX]toggleLogs` - Toggles the logs functionality on or off - `[PREFIX]toggleLogs` - Toggles the logs functionality on or off

View File

@ -26,9 +26,9 @@ class TrafficTracker(commands.Cog):
self.dailyLeftCount = 0 self.dailyLeftCount = 0
self.date = datetime.now() self.date = datetime.now()
@commands.command(name='setchannel', description='Sets the channel to sends log to') @commands.command(name='settrafficchannel', description='Sets the channel to sends log to')
@commands.has_any_role(*admin_roles) @commands.has_any_role(*admin_roles)
async def setChannel(self, ctx: commands.Context, channel: discord.TextChannel) -> None: async def setTrafficChannel(self, ctx: commands.Context, channel: discord.TextChannel) -> None:
await ctx.trigger_typing() await ctx.trigger_typing()
if not channel in ctx.guild.channels: if not channel in ctx.guild.channels: