Terminating during startup -> boot loop

This commit is contained in:
2021-08-09 13:47:02 +02:00
parent a83d98c47e
commit 391ed747d3
2 changed files with 11 additions and 19 deletions
+9 -15
View File
@@ -1,28 +1,23 @@
# IGNCore
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.
**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.**
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.
**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
IGNCore requires Python 3.9 or newer.
## 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,
2) copy conf/config.py to conf/##botname##.py
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
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.
4) copy the dummy.start.sh to a filename of your choice, and replace ##bot_name## with the name of your bot.
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.
## Upgrade
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
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.
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.
- Library used: https://discordpy.readthedocs.io/en/latest/index.html.
- Official Discord API docs can be accessed here: https://discordapp.com/developers/docs/intro.
+2 -4
View File
@@ -38,14 +38,12 @@ def get_config_from_env():
try:
# load logging configuration
import conf.logging_settings
Registry.logger = Logger("core.registry")
bot = "config"
if len(sys.argv) > 1:
bot = f"{sys.argv[1]}"
else:
print(
"Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
print("Unknown bot specified. Please edit your ##botname##.start.sh accordingly to the instructions found in the README.")
exit(0)
logger = Logger("core.bootstrap")
logger.info("Starting Tyrbot...")
@@ -68,7 +66,7 @@ try:
config = merge_dicts(config, env_config)
logger.info("Reading config from env vars")
else:
exit(-1)
pass
# ensure dimension is integer
if isinstance(config.server.dimension, str):
config.server.dimension = int(config.server.dimension)