Skip to content

Instantly share code, notes, and snippets.

@KohaAloha
Last active December 19, 2015 11:09
Show Gist options
  • Save KohaAloha/5945966 to your computer and use it in GitHub Desktop.
Save KohaAloha/5945966 to your computer and use it in GitHub Desktop.
wrapper script for twitterwatch
#!/usr/bin/perl
use strict;
use warnings;
use Bot::BasicBot::Pluggable;
use lib './';
use TwitterWatch;
my $bot = Bot::BasicBot::Pluggable->new(
channels => ["#waa"],
server => "irc.oftc.net",
port => "6667",
nick => "foo",
username => "bar",
name => "baz",
);
my $tw = $bot->load("TwitterWatch");
$tw->set( 'access_token' => 'aaa' );
$tw->set( 'access_token_secret' => 'bbb' );
$tw->set( 'consumer_key' => 'ccc' );
$tw->set( 'consumer_secret' => 'ddd' );
$bot->run;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment