mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -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']
|
definition = result['list'][pos]['definition']
|
||||||
example = result['list'][pos]['example']
|
example = result['list'][pos]['example']
|
||||||
defs = len(result['list'])
|
defs = len(result['list'])
|
||||||
await self.bot.say("**Definition #{} out of {}:\n**{}\n\n"
|
msg = ("**Definition #{} out of {}:\n**{}\n\n"
|
||||||
"**Example:\n**{}".format(pos+1, defs, definition, example))
|
"**Example:\n**{}".format(pos+1, defs, definition,
|
||||||
|
example))
|
||||||
|
msg = pagify(msg, ["\n"])
|
||||||
|
for page in msg:
|
||||||
|
await self.bot.say(page)
|
||||||
else:
|
else:
|
||||||
await self.bot.say("Your search terms gave no results.")
|
await self.bot.say("Your search terms gave no results.")
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user