mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 03:38:53 -05:00
Support for long !urban definitions
This commit is contained in:
parent
103f3d12c1
commit
cb96ae10d6
@ -227,8 +227,12 @@ class General:
|
||||
definition = result['list'][pos]['definition']
|
||||
example = result['list'][pos]['example']
|
||||
defs = len(result['list'])
|
||||
await self.bot.say("**Definition #{} out of {}:\n**{}\n\n"
|
||||
"**Example:\n**{}".format(pos+1, defs, definition, example))
|
||||
msg = ("**Definition #{} out of {}:\n**{}\n\n"
|
||||
"**Example:\n**{}".format(pos+1, defs, definition,
|
||||
example))
|
||||
msg = pagify(msg, ["\n"])
|
||||
for page in msg:
|
||||
await self.bot.say(page)
|
||||
else:
|
||||
await self.bot.say("Your search terms gave no results.")
|
||||
except IndexError:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user