OLD | NEW |
1 # coding: utf-8 | 1 # coding: utf-8 |
2 # Copyright 2013 The LUCI Authors. All rights reserved. | 2 # Copyright 2013 The LUCI Authors. All rights reserved. |
3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed under the Apache License, Version 2.0 |
4 # found in the LICENSE file. | 4 # that can be found in the LICENSE file. |
5 | 5 |
6 """This file is meant to be overriden by the server's specific copy. | 6 """This file is meant to be overriden by the server's specific copy. |
7 | 7 |
8 You can upload a new version via /restricted/upload/bot_config. | 8 You can upload a new version via /restricted/upload/bot_config. |
9 | 9 |
10 There's 3 types of functions in this file: | 10 There's 3 types of functions in this file: |
11 - get_*() to return properties to describe this bot. | 11 - get_*() to return properties to describe this bot. |
12 - on_*() as hooks based on events happening on the bot. | 12 - on_*() as hooks based on events happening on the bot. |
13 - setup_*() to setup global state on the host. | 13 - setup_*() to setup global state on the host. |
14 | 14 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 def setup_bot(bot): | 128 def setup_bot(bot): |
129 """Does one time initialization for this bot. | 129 """Does one time initialization for this bot. |
130 | 130 |
131 Returns True if it's fine to start the bot right away. Otherwise, the calling | 131 Returns True if it's fine to start the bot right away. Otherwise, the calling |
132 script should exit. | 132 script should exit. |
133 | 133 |
134 Example: making this script starts automatically on user login via | 134 Example: making this script starts automatically on user login via |
135 os_utilities.set_auto_startup_win() or os_utilities.set_auto_startup_osx(). | 135 os_utilities.set_auto_startup_win() or os_utilities.set_auto_startup_osx(). |
136 """ | 136 """ |
137 return True | 137 return True |
OLD | NEW |