Compare commits

..

No commits in common. "master" and "develop" have entirely different histories.

5 changed files with 14 additions and 20 deletions

View File

@ -3,7 +3,9 @@ all: deps_opt test
test: test:
crystal spec crystal spec
deps: deps:
shards install crystal deps install
deps_update:
crystal deps update
deps_opt: deps_opt:
@[ -d lib/ ] || make deps @[ -d lib/ ] || make deps
doc: doc:

View File

@ -4,17 +4,16 @@ A crystal library to create irc client/bot/server.
## Installation ## Installation
github mirror: [![travis](https://travis-ci.org/Meoowww/Crirc.svg)](https://travis-ci.org/Meoowww/Crirc) [![travis](https://travis-ci.org/Meoowww/Crirc.svg)](https://travis-ci.org/Meoowww/Crirc)
To install the lib, you will have to add the Crirc dependency to your project. To install the lib, you will have to add the Crirc dependancy to your project.
Add this to your application's `shard.yml`: Add this to your application's `shard.yml`:
```yaml ```yaml
dependencies: dependencies:
crirc: Crirc:
git: https://git.sceptique.eu/Sceptique/Crirc github: Meoowww/Crirc
branch: master
``` ```
Then, run ``crystal deps install`` to fetch the lib. Then, run ``crystal deps install`` to fetch the lib.
@ -26,12 +25,12 @@ This explains the architecture and design on the library, and details the techni
Specifications (unit tests) are written into the `/spec` directory. Specifications (unit tests) are written into the `/spec` directory.
A full implementation of a bot is published and maintained on <https://git.sceptique.eu/Sceptique/DashBot>. A full implementation of a bot is published and maintained on <https://github.com/Meoowww/DashBot>.
## Contributing ## Contributing
1. Fork it ( https://git.sceptique.eu/Sceptique/Crirc/fork ) 1. Fork it ( https://github.com/Meoowww/Crirc/fork )
2. Create your feature branch (git checkout -b my-new-feature) 2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature') 3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature) 4. Push to the branch (git push origin my-new-feature)
@ -40,5 +39,5 @@ A full implementation of a bot is published and maintained on <https://git.scept
## Contributors ## Contributors
- [Sceptique](https://git.sceptique.eu/Sceptique) Arthur Poulet - creator, maintainer - [Nephos](https://github.com/Nephos) Arthur Poulet - creator, maintainer
- [Damaia](https://github.com/Lucie-Dispot) Lucie Dispot - developer - [Damaia](https://github.com/Lucie-Dispot) Lucie Dispot - developer

View File

@ -1,9 +1,9 @@
name: crirc name: crirc
version: 0.5.1 version: 0.1.1
authors: authors:
- Arthur Poulet <arthur.poulet@sceptique.eu> - Arthur Poulet <arthur.poulet@sceptique.eu>
crystal: 1.0.0 crystal: 0.31.1
license: MIT license: MIT

View File

@ -8,11 +8,11 @@ class Crirc::Protocol::Chan < Crirc::Protocol::Target
getter timestamp : Int64 getter timestamp : Int64
def initialize(@message, @user) def initialize(@message, @user)
@timestamp = Time.utc.to_unix @timestamp = Time.now.to_unix
end end
def set_motd(@message, @user) def set_motd(@message, @user)
@timestamp = Time.utc.to_unix @timestamp = Time.now.to_unix
end end
end end

View File

@ -1,7 +0,0 @@
require "./crirc"
server = Crirc::Network::Server.new "0.0.0.0", 6667, ssl: false
server.start
client.close