https://github.com/pepabo/takosan
Ruby wrapper of Takosan
https://github.com/pepabo/takosan
gem ruby ruby-wrapper takosan
Last synced: 10 months ago
JSON representation
Ruby wrapper of Takosan
- Host: GitHub
- URL: https://github.com/pepabo/takosan
- Owner: pepabo
- License: mit
- Created: 2015-03-18T08:11:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-01-13T08:51:31.000Z (about 9 years ago)
- Last Synced: 2024-09-29T19:34:47.426Z (over 1 year ago)
- Topics: gem, ruby, ruby-wrapper, takosan
- Language: Ruby
- Homepage:
- Size: 17.6 KB
- Stars: 6
- Watchers: 209
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Takosan
[](http://badge.fury.io/rb/takosan)
[](https://travis-ci.org/pepabo/takosan)
Ruby wrapper of [Takosan](https://github.com/kentaro/takosan)
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'takosan'
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install takosan
## Usage
```ruby
Takosan.url = "http://irc.example.com:4649"
Takosan.channel = "#example"
Takosan.privmsg 'awesome comment'
Takosan.privmsg 'awesome comment and title with link', color: '#000', title: 'black title', title_link: 'http://example.com'
```
You can change Takosan's icon and name like the following:
```ruby
Takosan.icon = ":angel:"
Takosan.name = "ikasan"
```
## Contributing
1. Fork it ( https://github.com/pepabo/takosan/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`)
5. Create a new Pull Request