Compare commits
2 Commits
9cb726ad9e
...
aee180767d
Author | SHA1 | Date | |
---|---|---|---|
aee180767d | |||
bc3ef25b98 |
|
@ -38,7 +38,7 @@ def updick(bot, trigger):
|
|||
|
||||
|
||||
@commands('upwulf')
|
||||
def updick(bot, trigger):
|
||||
def upwulf(bot, trigger):
|
||||
""".upwulf - Returns the uptime of Fulvia, measured in Adalwulfs."""
|
||||
if trigger.group(2):
|
||||
if trigger.group(2) in bot.users:
|
||||
|
|
|
@ -33,6 +33,7 @@ def say_snippet(bot, query, show_url=True):
|
|||
msg = f'[\x0304WIKIPEDIA\x03] \x0310{page_name}\x03 | \x0312"{snippet}"'
|
||||
if show_url:
|
||||
msg = msg + f"\x03 | \x0307https://en.wikipedia.org/wiki/{query}"
|
||||
msg = msg[:270] + '...' # arbitrary cutoff
|
||||
bot.msg(msg)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user