-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstart.py
More file actions
51 lines (47 loc) · 1.26 KB
/
start.py
File metadata and controls
51 lines (47 loc) · 1.26 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import importlib
from colorama import Fore
from core.bot import Bot
import commands as cmd
import asyncio
username = input("Username: ")
password = input("Password: ")
server = input("Server: ")
bot_path = input(f"Bot path (e.g., {Fore.BLUE}bot.nulgath.larvae{Fore.RESET}): ")
# Initialize bot
b = Bot(
roomNumber=1,
itemsDropWhiteList=[
"Mana Energy for Nulgath",
"Gem of Nulgath",
"Diamond of Nulgath",
"Voucher of Nulgath",
"Voucher of Nulgath (non-mem)",
"Dark Crystal Shard",
"Totem of Nulgath",
"Blood Gem of the Archfiend",
"Unidentified 13",
"Tainted Gem",
"Unidentified 10"
"Void Aura"
],
showLog=True,
showDebug=False,
showChat=True,
isScriptable=True,
followPlayer="",
slavesPlayer=[],
# farmClass="Legion Revenant",
# soloClass="Void HighLord",
autoRelogin=True,
muteSpamWarning=True
)
b.set_login_info(username, password, server)
bot_path = bot_path
try:
bot_class = importlib.import_module(bot_path)
print(f"starting bot: {bot_path.split('.')[-1]}")
asyncio.run(b.start_bot(bot_class.main))
except KeyboardInterrupt:
print("\nBot stopped by user.")
except ModuleNotFoundError as e:
print(f"\nError: {e}")