-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.py
More file actions
32 lines (25 loc) · 759 Bytes
/
main.py
File metadata and controls
32 lines (25 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import signal
from botlib.jobs.blackmage import BlackMageBot
from main_visualize import OUTSIDE_CRYSTAL, TAMTARA_END, TOTORAK_END
def main():
dungeon_config = {
'uldah': {
'exit_coordinate': OUTSIDE_CRYSTAL,
'map_id': 13,
}, 'tamtara': {
'exit_coordinate': TAMTARA_END,
'map_id': 8,
}, 'totorak': {
'exit_coordinate': TOTORAK_END,
'map_id': 9,
}
}
bot = BlackMageBot(mode='dungeon', dungeon_config=dungeon_config['tamtara'])
def handler(signum, frame):
bot.stop_all()
signal.signal(signal.SIGINT, handler)
bot.learn_asynchronous()
bot.start_asynchronous()
bot.joinall()
if __name__ == '__main__':
main()