bean__ has joined #cinch
bean__ has quit [Client Quit]
v0n has quit [Read error: Operation timed out]
v0n has joined #cinch
postmodern has joined #cinch
V8Energy has quit []
v0n has quit [Read error: Connection reset by peer]
v0n has joined #cinch
V8Energy has joined #cinch
<
V8Energy>
is there a way to bold or color a certain part of the text when replying with the bot?
<
catepillar>
look into Format
<
V8Energy>
Yap reading it now
<
V8Energy>
Thanks :)
<
V8Energy>
ugh I need a better Example
<
V8Energy>
reply = Format(:underline, "Hello %s! Is your favourite color %s?" % [Format(:bold, "stranger"), Format(:red, "red")])
<
V8Energy>
why is there a % ?
<
catepillar>
that's a printf thing
<
catepillar>
you can do something like Format(:underline, "Hello #{Format(:bold, "stranger")}! Is your favourite color #{Format(:red, "red")}?")
<
catepillar>
its essentially the same thing
<
catepillar>
Format(:blue,Format(:bold, Format(:underline,"This also " + Format(:red,"works"))))
<
catepillar>
but its far less readable
<
catepillar>
you could also do something like
<
catepillar>
Format(:red, "This is red") + Format(:blue, " and this is blue")
<
V8Energy>
Ohh awesome Thanks :)
<
V8Energy>
is there a way to make "This is red" bold and red?
<
catepillar>
i usually do 2 formats
<
catepillar>
Format(:red, Format(:bold, "Text here" ))
<
catepillar>
i dunno if you can actually combine them into one
<
V8Energy>
u can.. but i think if u have something like this: Format(:red, Format(:bold, "Text here" ) + "more text")
<
V8Energy>
the "more text" won't be red
<
catepillar>
it should be red
<
catepillar>
is that not actually happening?
<
V8Energy>
i think when i tried it, it wasn't
<
V8Energy>
i will try again tomorrow
<
catepillar>
interesting
<
V8Energy>
gotta go to sleep now. thanks for all ur help :
<
catepillar>
this is nested formatting, it should be ok
caitlinface has quit [Quit: quit]
caitlinface has joined #cinch
V8Energy has quit [Ping timeout: 248 seconds]
v0n has quit [Ping timeout: 252 seconds]
jhaals has joined #cinch
jhaals has quit [Ping timeout: 264 seconds]
jhaals has joined #cinch
jhaals has joined #cinch
v0n has joined #cinch
postmodern has quit [Quit: Leaving]
rikai_ has joined #cinch
rikai has quit [Ping timeout: 255 seconds]
jhaals has quit [Ping timeout: 260 seconds]
bean__ has joined #cinch
bean__ has quit [Max SendQ exceeded]
bean__ has joined #cinch
jhaals has joined #cinch
mr_edgecase has joined #cinch
<
mr_edgecase>
is there a plugin example where plugin options are used?
<
dominikh>
unfortunately no
<
dominikh>
I'll boild it down. `c.plugins.options[PluginClass][:option_name] = value` and `config[:option_name]`
<
dominikh>
the latter for gettig it in a plugin
<
mr_edgecase>
thanks
mr_edgecase has left #cinch [#cinch]
V8Energy has joined #cinch
postmodern has joined #cinch
rikai has joined #cinch
rikai has quit [Read error: Connection reset by peer]
rikai_ has quit [Read error: Connection reset by peer]
rikai has joined #cinch
brandon|work is now known as
_____
_____ is now known as brandon|work
bean__ has quit [Quit: Computer has gone to sleep.]
v0n has quit [Read error: Operation timed out]
kith_ has joined #cinch
kith has quit [Disconnected by services]
kith_ is now known as kith