mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 02:42:30 -05:00
Typos
This commit is contained in:
@@ -167,7 +167,7 @@ class General:
|
|||||||
data = "```\n"
|
data = "```\n"
|
||||||
data += "Name: " + server.name + "\n"
|
data += "Name: " + server.name + "\n"
|
||||||
data += "ID: " + server.id + "\n"
|
data += "ID: " + server.id + "\n"
|
||||||
data += "Region: " + server.region.name + "\n"
|
data += "Region: " + str(server.region) + "\n"
|
||||||
data += "Users: " + online + "/" + total + "\n"
|
data += "Users: " + online + "/" + total + "\n"
|
||||||
data += "Channels: " + str(len(server.channels)) + "\n"
|
data += "Channels: " + str(len(server.channels)) + "\n"
|
||||||
data += "Roles: " + str(len(server.roles)) + "\n"
|
data += "Roles: " + str(len(server.roles)) + "\n"
|
||||||
@@ -213,9 +213,9 @@ class General:
|
|||||||
self.poll_sessions.append(p)
|
self.poll_sessions.append(p)
|
||||||
await p.start()
|
await p.start()
|
||||||
else:
|
else:
|
||||||
await self.bot.say("`poll question;option1;option2 (...)`")
|
await self.bot.say("poll question;option1;option2 (...)")
|
||||||
else:
|
else:
|
||||||
await self.bot.say("`A poll is already ongoing in this channel.`")
|
await self.bot.say("A poll is already ongoing in this channel.")
|
||||||
|
|
||||||
async def endpoll(self, message):
|
async def endpoll(self, message):
|
||||||
if self.getPollByChannel(message):
|
if self.getPollByChannel(message):
|
||||||
@@ -223,9 +223,9 @@ class General:
|
|||||||
if p.author == message.author.id: # or isMemberAdmin(message)
|
if p.author == message.author.id: # or isMemberAdmin(message)
|
||||||
await self.getPollByChannel(message).endPoll()
|
await self.getPollByChannel(message).endPoll()
|
||||||
else:
|
else:
|
||||||
await self.bot.say("`Only admins and the author can stop the poll.`")
|
await self.bot.say("Only admins and the author can stop the poll.")
|
||||||
else:
|
else:
|
||||||
await self.bot.say("`There's no poll ongoing in this channel.`")
|
await self.bot.say("There's no poll ongoing in this channel.")
|
||||||
|
|
||||||
def getPollByChannel(self, message):
|
def getPollByChannel(self, message):
|
||||||
for poll in self.poll_sessions:
|
for poll in self.poll_sessions:
|
||||||
|
|||||||
Reference in New Issue
Block a user