Terminating during startup -> boot loop
This commit is contained in:
@@ -1,28 +1,23 @@
|
|||||||
# IGNCore
|
# IGNCore
|
||||||
|
|
||||||
IGNcore is a performance oriented rewrite of [Tyrbot](https://github.com/Budabot/Tyrbot), which is an in-game chatbot
|
IGNcore is a performance oriented rewrite of [Tyrbot](https://github.com/Budabot/Tyrbot), which is an in-game chatbot for the MMORPG Anarchy Online released by Funcom in 2001.
|
||||||
for the MMORPG Anarchy Online released by Funcom in 2001.
|
|
||||||
|
|
||||||
**If you're unsure about good ways of setting it up, this bot is NOT for you. The bot targets advanced use cases of
|
|
||||||
bigger bots, and lacks all types of documentation as of now.**
|
|
||||||
|
|
||||||
|
**If you're unsure about good ways of setting it up, this bot is NOT for you.
|
||||||
|
The bot targets advanced use cases of bigger bots, and lacks all types of documentation as of now.**
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
IGNCore requires Python 3.9 or newer.
|
IGNCore requires Python 3.9 or newer.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
IGNCore is recommended to use for large scaled bots, or bot networks consisting out of multiple bots.
|
IGNCore is recommended to use for large scaled bots, or bot networks consisting out of multiple bots.
|
||||||
|
|
||||||
1) Download the Repository,
|
1) Download the Repository,
|
||||||
2) copy conf/config.py to conf/##botname##.py
|
2) copy conf/config.py to conf/##botname##.py
|
||||||
3) add your database details to the config
|
3) add your database details to the config
|
||||||
4) copy the dummy.start.sh to a filename of your choice, and replace ##bot_name## with the name of your bot. Note: the
|
4) copy the dummy.start.sh to a filename of your choice, and replace ##bot_name## with the name of your bot.
|
||||||
superadmin needs to be supplied in char_id format instead of a name.
|
Note: the superadmin needs to be supplied in char_id format instead of a name.
|
||||||
|
|
||||||
regarding step 4: for module paths, you can choose between raidbot, orgbot and
|
|
||||||
onlinebot [used for a centralized alliance bot] modules. Compatibility between these modules is **not** guaranteed.
|
|
||||||
|
|
||||||
|
regarding step 4: for module paths, you can choose between raidbot, orgbot and onlinebot [used for a centralized alliance bot] modules.
|
||||||
|
Compatibility between these modules is **not** guaranteed.
|
||||||
## Upgrade
|
## Upgrade
|
||||||
|
|
||||||
For upgrading just pull in the latest changes from the repository, and restart the bot.
|
For upgrading just pull in the latest changes from the repository, and restart the bot.
|
||||||
@@ -37,8 +32,7 @@ If you need help or support with IGNCore, reach out to us by contacting us via g
|
|||||||
|
|
||||||
## Discord Module Setup
|
## Discord Module Setup
|
||||||
|
|
||||||
For setting up the discord module, create a discord bot, invite it into your server, and fill in the required details
|
For setting up the discord module, create a discord bot, invite it into your server, and fill in the required details in !config mod core.discord.
|
||||||
in !config mod core.discord.
|
|
||||||
|
|
||||||
- Library used: https://discordpy.readthedocs.io/en/latest/index.html.
|
- Library used: https://discordpy.readthedocs.io/en/latest/index.html.
|
||||||
- Official Discord API docs can be accessed here: https://discordapp.com/developers/docs/intro.
|
- Official Discord API docs can be accessed here: https://discordapp.com/developers/docs/intro.
|
||||||
|
|||||||
+2
-4
@@ -38,14 +38,12 @@ def get_config_from_env():
|
|||||||
try:
|
try:
|
||||||
# load logging configuration
|
# load logging configuration
|
||||||
import conf.logging_settings
|
import conf.logging_settings
|
||||||
|
|
||||||
Registry.logger = Logger("core.registry")
|
Registry.logger = Logger("core.registry")
|
||||||
bot = "config"
|
bot = "config"
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
bot = f"{sys.argv[1]}"
|
bot = f"{sys.argv[1]}"
|
||||||
else:
|
else:
|
||||||
print(
|
print("Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
|
||||||
"Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
|
|
||||||
exit(0)
|
exit(0)
|
||||||
logger = Logger("core.bootstrap")
|
logger = Logger("core.bootstrap")
|
||||||
logger.info("Starting Tyrbot...")
|
logger.info("Starting Tyrbot...")
|
||||||
@@ -68,7 +66,7 @@ try:
|
|||||||
config = merge_dicts(config, env_config)
|
config = merge_dicts(config, env_config)
|
||||||
logger.info("Reading config from env vars")
|
logger.info("Reading config from env vars")
|
||||||
else:
|
else:
|
||||||
exit(-1)
|
pass
|
||||||
# ensure dimension is integer
|
# ensure dimension is integer
|
||||||
if isinstance(config.server.dimension, str):
|
if isinstance(config.server.dimension, str):
|
||||||
config.server.dimension = int(config.server.dimension)
|
config.server.dimension = int(config.server.dimension)
|
||||||
|
|||||||
Reference in New Issue
Block a user