GithubHelp home page GithubHelp logo

bleuchtang / methal9k Goto Github PK

View Code? Open in Web Editor NEW

This project forked from w1gz/methal9k

0.0 2.0 0.0 119 KB

Home of Meta Hal 9000 -- IRC bot & more

License: GNU General Public License v3.0

Elixir 100.00%

methal9k's Introduction

Motivation

This is a good exercise for learning more about Elixir, Erlang and OTP. Furthermore, Hal greatly benefits from the features provided by OTP: GenServer, Supervisor or even Hot code loading.

Installation

Basic requirements

  • Erlang/OTP-19
  • Elixir 1.4

Running the bot

Bare metal

Everything in methal9k is handle by Mix

mix deps.get
mix run --no-halt

Docker

Missing an IRC server for testing?

Build and run the dedicated container

docker build -t methal9k-ircd .
docker run --rm -it -p 6697:6697 methal9k-ircd

You can then connect to the local IRC server (SSL only)

Use docker ps to find the container_id and docker inspect <container_id> to find the IP. You will probably need root privilege in order to talk to the Docker daemon.

Or use the power of awk to deliver it to you

cid=$(docker ps | awk '$2 == "methal9k-ircd" {print $1}')
docker inspect $cid | awk -F '"' '$2 == "IPAddress" {print $4; exit}'

Improvements

If you feel something is wrong with the way Hal is done, I welcome any suggestion, criticism or contribution.

License

This work is free. You can redistribute it and/or modify it under the
terms of the GPLv3 License. See the LICENSE file for more details.

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.