wesr / halcyon Goto Github PK
View Code? Open in Web Editor NEWHalcyon is a Matrix bot library created with the intention of being easy to install and use.
License: BSD 3-Clause "New" or "Revised" License
Halcyon is a Matrix bot library created with the intention of being easy to install and use.
License: BSD 3-Clause "New" or "Revised" License
I am running halcyon-stock-bot. I invited it to one room to tested it (it sent its welcome message and responded to a ticker symbol). I invited it to another and it joined and then crashed with a traceback similar to this one. It did not send its welcome message. I restarted the bot process and it's now always producing the following traceback:
Traceback (most recent call last):
File "/app/bot.py", line 63, in <module>
client.run(halcyonToken=keys["halcyon"], longPollTimeout=1)#make sure you set it back to 30sec once your done debugging
File "/usr/local/lib/python3.10/site-packages/halcyon/halcyon.py", line 482, in run
self._roomcacheinit()
File "/usr/local/lib/python3.10/site-packages/halcyon/halcyon.py", line 119, in _roomcacheinit
self.roomCache["rooms"][roomID] = room(rawEvents=self.restrunner.getRoomState(roomID), roomID=roomID)
File "/usr/local/lib/python3.10/site-packages/halcyon/room.py", line 81, in __init__
self.predecessor = self.roomPredecessor(event["content"].get("predecessor"))
File "/usr/local/lib/python3.10/site-packages/halcyon/room.py", line 155, in __init__
self._parseRawContent(rawContent)
File "/usr/local/lib/python3.10/site-packages/halcyon/room.py", line 164, in _parseRawContent
self.event = idReturn(rawContent.get("event_id"))
NameError: name 'idReturn' is not defined
and failing to start.
I am running inside a docker container I built myself in Kubernetes. That container is built from this base dockerfile and this stock bot specific dockerfile.
Happy to provide whatever other detail you need to help troubleshoot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.