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
bot.say("Successfully enabled listening for {repo}'s events in {chan}.".format(chan=channel, repo=repo_name))
365
365
bot.say('Great! Please allow me to create my webhook by authorizing via this link: '+shorten_url(auth_url))
366
-
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')
366
+
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))
367
367
else:
368
368
c.execute('''UPDATE gh_hooks SET enabled = ? WHERE channel = ? AND repo_name = ?''', (enabled, channel, repo_name))
369
369
bot.say("Successfully {state} the subscription to {repo}'s events".format(state='enabled'ifenabledelse'disabled', repo=repo_name))
370
370
ifenabled:
371
371
bot.say('Great! Please allow me to create my webhook by authorizing via this link: '+shorten_url(auth_url))
372
-
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')
372
+
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))
returnbot.say('You must provide exactly 6 colors that are integers and are space separated. See ".help gh-hook-color" for more information.')
397
+
returnbot.say('You must provide exactly 6 colors that are integers and are space separated. See "{}help gh-hook-color" for more information.'.format(bot.config.core.help_prefix))
398
398
399
399
iflen(colors) !=6:
400
-
returnbot.say('You must provide exactly 6 colors! See ".help gh-hook-color" for more information.')
400
+
returnbot.say('You must provide exactly 6 colors! See "{}help gh-hook-color" for more information.'.format(bot.config.core.help_prefix))
401
401
402
402
conn=bot.db.connect()
403
403
c=conn.cursor()
404
404
405
405
c.execute('SELECT * FROM gh_hooks WHERE channel = ? AND repo_name = ?', (channel, repo_name))
406
406
result=c.fetchone()
407
407
ifnotresult:
408
-
returnbot.say('Please use ".gh-hook {} enable" before attempting to configure colors!'.format(repo_name))
408
+
returnbot.say('Please use "{}gh-hook {} enable" before attempting to configure colors!'.format(bot.config.core.help_prefix, repo_name))
0 commit comments