clp-research / slurk-bots Goto Github PK
View Code? Open in Web Editor NEWBots for the Slurk project
Home Page: https://github.com/clp-research/slurk
License: BSD 3-Clause "New" or "Revised" License
Bots for the Slurk project
Home Page: https://github.com/clp-research/slurk
License: BSD 3-Clause "New" or "Revised" License
Spent a couple of afternoons off and on trying to build an image for the dito bot before I figured out that that the Dockerfile was written to be invoked from the directory above.
That is, I was in the dito/
directory and calling podman build . -t slurk/dito
and getting the file not found error that pops up sometimes with Docker COPY commands. When I edited the Dockerfile relative to this directory (removing dito/
in line 6 and replacing dito
with .
in line 9) it started working and only then did I realise my error.
Might be good to add instructions in the slurk-bots/README.md
or the README for each individual bot for how folks are supposed to build the images.
(I also tested with docker instead of podman+buildah, of course, but had the same silly mistake)
When not providing data for a request, no content type is required. However, the API returns 415 when omitting the content type in any case.
What is the current status of the development branch? There were no contributions in the past year.
All bot docker images are named slurk/<name>-bot
All bot classes are named <Name>Bot
I like that those follow a pattern.
However, our folders are named either <name>bot
or only <name>
If we intend to use a template for bots, it would be positioned in the parent directory of all bot scripts #33 . The only two ways, I know of, how to import from there, are to manually manipulate syspath:
ROOT = os.path.dirname(os.path.abspath(__file__))
sys.path.append(ROOT)
Or to execute the bot scripts as modules from the root directory and use absolute imports from there (as seen in #33):
python -m echo
I prefer the later, but at least on WSL (Windows 10, Ubuntu 20.04 LTS) + conda, the python interpreter chooses the standard library module math over a folder in the current working directory with the same name.
So the name math
for the MathBot can't be used for this approach.
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.