Comments (5)
I had to got in the code to see the default config to understand what is expected.
cinch/lib/cinch/configuration/bot.rb
Lines 13 to 44 in c66bbe7
# (see Configuration.default_config)
def self.default_config
{
:server => "localhost",
:port => 6667,
:ssl => Configuration::SSL.new,
:password => nil,
:nick => "cinch",
:nicks => nil,
:realname => "cinch",
:user => "cinch",
:modes => [],
:messages_per_second => nil,
:server_queue_size => nil,
:strictness => :forgiving,
:message_split_start => '... ',
:message_split_end => ' ...',
:max_messages => nil,
:plugins => Configuration::Plugins.new,
:channels => [],
:encoding => :irc,
:reconnect => true,
:max_reconnect_delay => 300,
:local_host => nil,
:timeouts => Configuration::Timeouts.new,
:ping_interval => 120,
:delay_joins => 0,
:dcc => Configuration::DCC.new,
:sasl => Configuration::SASL.new,
:shared => {},
}
end
So in fact ssl is expecting an SSL object.
from cinch.
Even knowing that and trying various configuration
ssl = Cinch::Configuration::SSL.new do |ssl|
configure do |s|
s.use = true
s.verify = false
end
end
I did not succeed to configure the bot to use SSL and connect to a 6697 port.
from cinch.
The good syntax was
bot = Cinch::Bot.new do |boti|
configure do |c|
c.server = "172.17.0.1"
c.port = 6697
c.ssl.use = true
c.nick = "plop"
end
...
By the way I see you are using OpenSSL to manage SSL connection but there is no `dependencies` section in the README or in the documentation.
![image](https://user-images.githubusercontent.com/16578570/47953558-98ab3d80-df7f-11e8-9594-26a86908885c.png)
from cinch.
https://www.rubydoc.info/gems/cinch/file/docs/bot_options.md
from cinch.
Why is that not put in yard?
Look how I did it for this lib:
- https://noraj.gitlab.io/nvd_api/NVDFeedScraper/Feed.html#download_file-instance_method
- https://gitlab.com/noraj/nvd_api/blob/master/lib/nvd_feed_api/feed.rb#L332
from cinch.
Related Issues (20)
- How create an event for all message sended ? HOT 1
- Can I running In Background? HOT 3
- Site is offline HOT 1
- Cinch::Helper can't get instances of Channel and User objects HOT 5
- Upon timeout (either through internet loss or server connection loss), cinch replays already-executed messages and commands. HOT 3
- "Write" and "ping" irc threads still open after bot.quit HOT 1
- Uppercase CTCP commands so they always match
- Is this still maintained? HOT 3
- Method name typo cinch v2.3.3 HOT 1
- Support for reverse DCC SEND
- Sometimes on_channel handler receives message concatenated with other one
- IRCv3 tags broken if tag value contains a colon HOT 4
- backup file in gem HOT 3
- ":invite" event is not documented HOT 2
- adding proxy support HOT 1
- Bot#oper crashes the process when used specific IRCds
- Mismatch between code and released version. HOT 1
- idle method always return 0 HOT 11
- SASL authentication times out HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cinch.