fixed names
This commit is contained in:
parent
75d092f2d7
commit
a5ed8fe540
@ -1,8 +1,7 @@
|
||||
import discord
|
||||
from datetime import datetime
|
||||
|
||||
from redbot.core import Config, checks, commands
|
||||
from redbot.core.utils.chat_formatting import box, humanize_list, pagify
|
||||
from redbot.core import Config, commands
|
||||
|
||||
allowed_guilds = {274657393936302080, 693796372092289024, 508781789737648138}
|
||||
admin_roles = {'Developer', 'admin', 'Council'}
|
||||
@ -53,9 +52,9 @@ class TrafficTrack(commands.Cog):
|
||||
message.set_thumbnail(url=statsThumbnailUrl)
|
||||
message.add_field(name='Daily Joined', value=self.dailyJoinedCount, inline='True')
|
||||
message.add_field(name='Daily Left', value='{0}\n'.format(self.dailyLeftCount), inline='True')
|
||||
message.add_field(name='Total Traffic', value=self.totalLogs, inline='False')
|
||||
message.add_field(name='Total Joined', value=self.totalJoinedCount, inline='True')
|
||||
message.add_field(name='Total Left', value=self.totalLeftCount, inline='True')
|
||||
message.add_field(name='Total Traffic', value=self.totalLogs, inline='False')
|
||||
await ctx.send(content=None, embed=message)
|
||||
|
||||
@commands.command(name='resetstats', description='Resets statistics')
|
||||
@ -112,6 +111,8 @@ class TrafficTrack(commands.Cog):
|
||||
self.__checkClock()
|
||||
if self.channel in member.guild.channels and self.toggleLogs:
|
||||
await self.channel.send('>>> {0} has been banned from the server'.format(member.mention))
|
||||
self.totalLeftCount += 1
|
||||
self.dailyLeftCount += 1
|
||||
self.totalLogs += 1
|
||||
except (discord.NotFound, discord.Forbidden):
|
||||
print(
|
||||
@ -1,5 +1,5 @@
|
||||
from .trafficTrack import TrafficTrack
|
||||
from .TrafficTracker import TrafficTracker
|
||||
from redbot.core.bot import Red
|
||||
|
||||
def setup(bot: Red):
|
||||
bot.add_cog(TrafficTrack(bot))
|
||||
bot.add_cog(TrafficTracker(bot))
|
||||
@ -2,8 +2,7 @@ import aiohttp
|
||||
import discord
|
||||
import json
|
||||
|
||||
from redbot.core import Config, checks, commands
|
||||
from redbot.core.utils.chat_formatting import box, humanize_list, pagify
|
||||
from redbot.core import Config, commands
|
||||
|
||||
url = 'https://raw.githubusercontent.com/Kanium/KaniumCogs/master/welcomeCog/data/embedded_message.json'
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user