Coder Social home page Coder Social logo

clp-research / slurk-bots Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 13.0 50.4 MB

Bots for the Slurk project

Home Page: https://github.com/clp-research/slurk

License: BSD 3-Clause "New" or "Revised" License

Dockerfile 0.66% Python 74.59% Shell 2.28% JavaScript 21.21% HTML 1.25%

slurk-bots's People

Contributors

janagoetze avatar kranti-up avatar maikepaetzel avatar pkhdipraja avatar robinrojowiec avatar sebag90 avatar tamaraatanasoska avatar timdiekmann avatar wencke-lm avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

slurk-bots's Issues

missing instructions for Docker build

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)

Bot folder name scheme

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.