#Heraldtron - need help running on pebblehost

10 messages · Page 1 of 1 (latest)

modern vapor
#

I am trying to run this bot: github[dot]com/mirnovov/heraldtron but it looks like it was meant for running locally as it is invoked with the command "python -m ht" instead of having something like a bot.py file. I've tried fidding about to get it to work without sucess as I don't know python. If anyone could help me out that would be awesome 😄

hexed estuary
#

looking at the code, I assume you run either ht/__init__.py or the __main__.py

modern vapor
#

mmm, I tried calling main directly, had to tweak some of the other files to fix import references, but then it errors out:
27.02 00:01:56 [Bot] File "/usr/lib/python3.9/importlib/util.py", line 94, in find_spec
27.02 00:01:56 [Bot] parent = import(parent_name, fromlist=['path'])
27.02 00:01:56 [Bot] ModuleNotFoundError: No module named 'ht'

#

I'm assuming that's because I didn't start python with the flag to tell it that it is running a module from the folder ht

#

I spent a while trying to find a way to do that or something equivalent in a custom bot.py but my google-fu was too weak

hexed estuary
#

its a non-standard design

#

i suggest you ask the dev to see if it is possible to run it from a file instead

modern vapor
#

will do, thank you for taking a look!