You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It hasn't been doing anything useful for a while anyway, since GitHub
killed off their git.io shortening service.
Now that we definitely expect the full link, the `.gh-hook` command will
output the authorization URL on its own line, with `max_messages` set to
allow Sopel to split it across multiple messages if needed. Truncation
would be very bad in that case.
bot.say("Successfully enabled listening for {repo}'s events in {chan}.".format(chan=channel, repo=repo_name))
522
-
bot.say('Great! Please allow me to create my webhook by authorizing via this link: '+shorten_url(auth_url))
521
+
bot.say('Great! Please allow me to create my webhook by authorizing via this link:')
522
+
bot.say(auth_url, max_messages=10)
523
523
bot.say('Once that webhook is successfully created, I\'ll post a message in here. Give me about a minute or so to set it up after you authorize. You can configure the colors that I use to display webhooks with {}gh-hook-color'.format(bot.config.core.help_prefix))
524
524
else:
525
525
c.execute('''UPDATE gh_hooks SET enabled = ? WHERE channel = ? AND repo_name = ?''', (enabled, channel, repo_name))
526
526
bot.say("Successfully {state} the subscription to {repo}'s events".format(state='enabled'ifenabledelse'disabled', repo=repo_name))
527
527
ifenabled:
528
-
bot.say('Great! Please allow me to create my webhook by authorizing via this link: '+shorten_url(auth_url))
528
+
bot.say('Great! Please allow me to create my webhook by authorizing via this link:')
529
+
bot.say(auth_url, max_messages=10)
529
530
bot.say('Once that webhook is successfully created, I\'ll post a message in here. Give me about a minute or so to set it up after you authorize. You can configure the colors that I use to display webhooks with {}gh-hook-color'.format(bot.config.core.help_prefix))
0 commit comments