Compare commits
No commits in common. "master" and "develop" have entirely different histories.
4
Makefile
4
Makefile
|
@ -3,7 +3,9 @@ all: deps_opt test
|
|||
test:
|
||||
crystal spec
|
||||
deps:
|
||||
shards install
|
||||
crystal deps install
|
||||
deps_update:
|
||||
crystal deps update
|
||||
deps_opt:
|
||||
@[ -d lib/ ] || make deps
|
||||
doc:
|
||||
|
|
15
README.md
15
README.md
|
@ -4,17 +4,16 @@ A crystal library to create irc client/bot/server.
|
|||
|
||||
## 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`:
|
||||
|
||||
```yaml
|
||||
dependencies:
|
||||
crirc:
|
||||
git: https://git.sceptique.eu/Sceptique/Crirc
|
||||
branch: master
|
||||
Crirc:
|
||||
github: Meoowww/Crirc
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
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
|
||||
|
||||
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)
|
||||
3. Commit your changes (git commit -am 'Add some 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
|
||||
|
||||
- [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
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
name: crirc
|
||||
version: 0.5.1
|
||||
version: 0.1.1
|
||||
|
||||
authors:
|
||||
- Arthur Poulet <arthur.poulet@sceptique.eu>
|
||||
|
||||
crystal: 1.0.0
|
||||
crystal: 0.31.1
|
||||
|
||||
license: MIT
|
||||
|
|
|
@ -8,11 +8,11 @@ class Crirc::Protocol::Chan < Crirc::Protocol::Target
|
|||
getter timestamp : Int64
|
||||
|
||||
def initialize(@message, @user)
|
||||
@timestamp = Time.utc.to_unix
|
||||
@timestamp = Time.now.to_unix
|
||||
end
|
||||
|
||||
def set_motd(@message, @user)
|
||||
@timestamp = Time.utc.to_unix
|
||||
@timestamp = Time.now.to_unix
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
require "./crirc"
|
||||
|
||||
|
||||
server = Crirc::Network::Server.new "0.0.0.0", 6667, ssl: false
|
||||
server.start
|
||||
|
||||
client.close
|
Loading…
Reference in New Issue
Block a user