diff options
-rw-r--r-- | examples/01-uppercase-bot.p6 | 2 | ||||
-rw-r--r-- | examples/02-trickster-bot.p6 | 2 | ||||
-rw-r--r-- | examples/03-github-notifications.p6 | 2 | ||||
-rw-r--r-- | examples/04-bash-bot.p6 | 2 | ||||
-rw-r--r-- | examples/05-bash-bot-with-filter.p6 | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/01-uppercase-bot.p6 b/examples/01-uppercase-bot.p6 index d846538..c432710 100644 --- a/examples/01-uppercase-bot.p6 +++ b/examples/01-uppercase-bot.p6 @@ -2,7 +2,7 @@ use lib <lib>; use IRC::Client; .run with IRC::Client.new: :nick<MahBot> - :host<irc.freenode.net> + :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net') :channels<#zofbot> :debug :plugins(class { method irc-to-me ($_) { .text.uc } }) diff --git a/examples/02-trickster-bot.p6 b/examples/02-trickster-bot.p6 index 178fcdd..574a797 100644 --- a/examples/02-trickster-bot.p6 +++ b/examples/02-trickster-bot.p6 @@ -13,7 +13,7 @@ class BFF { method irc-to-me ($ where /'♥'/) { 'I ♥ YOU!' } } .run with IRC::Client.new: :nick<MahBot> - :host<irc.freenode.net> + :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net') :channels<#zofbot> :debug :plugins(Trickster, BFF) diff --git a/examples/03-github-notifications.p6 b/examples/03-github-notifications.p6 index 8dec6d2..58596c6 100644 --- a/examples/03-github-notifications.p6 +++ b/examples/03-github-notifications.p6 @@ -32,7 +32,7 @@ class GitHub::Notifications does IRC::Client::Plugin { .run with IRC::Client.new: :nick<MahBot> - :host<irc.freenode.net> + :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net') :channels<#zofbot> :debug :plugins(GitHub::Notifications.new) diff --git a/examples/04-bash-bot.p6 b/examples/04-bash-bot.p6 index d3aaa4c..53baf87 100644 --- a/examples/04-bash-bot.p6 +++ b/examples/04-bash-bot.p6 @@ -20,7 +20,7 @@ class Bash { .run with IRC::Client.new: :nick<MahBot> - :host<irc.freenode.net> + :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net') :channels<#zofbot> :debug :plugins(Bash.new); diff --git a/examples/05-bash-bot-with-filter.p6 b/examples/05-bash-bot-with-filter.p6 index 730d9ea..f2aa692 100644 --- a/examples/05-bash-bot-with-filter.p6 +++ b/examples/05-bash-bot-with-filter.p6 @@ -21,7 +21,7 @@ class Bash { .run with IRC::Client.new: :nick<MahBot> - :host<localhost> + :host(%*ENV<IRC_CLIENT_HOST> // 'irc.freenode.net') :channels<#zofbot> :debug :plugins(Bash.new) |