瀏覽代碼

color for git help

tags/v0.1
Ben Kurtovic 13 年之前
父節點
當前提交
12ee4ba3e3
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      actions.py

+ 2
- 1
actions.py 查看文件

@@ -44,7 +44,8 @@ def cmd_git(nick, host, chan, msg): # commands to interface with the bot's git r
return

if args[0] == "help": # display all commands
cmds = ["branch (show current branch)", "branches (show all branches)", "checkout (switch branches)", "pull (update current branch)"]
cmds = ["\x0303branch\x0301 (show current branch)", "\x0303branches\x0301 (show all branches)",
"\x0303checkout\x0301 (switch branches)", "\x0303pull\x0301 (update current branch)"]
cmds = ', '.join(cmds)
say(chan, "\x02%s\x0F: sub-commands are: %s" % (nick, cmds))



Loading…
取消
儲存