Skip to content

Instantly share code, notes, and snippets.

@co-dan
Created October 26, 2012 11:53
Show Gist options
  • Save co-dan/3958362 to your computer and use it in GitHub Desktop.
Save co-dan/3958362 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use Irssi;
use vars qw($VERSION %IRSSI);
use warnings;
use strict;
##use common::sense;
##use Modern::Perl 2012;
Irssi::command_bind smile => \⌣
$VERSION = '666';
%IRSSI = (
authors => 'jakk',
contact => 'jakk@irc.buttes.org',
name => 'smilepl',
description => '^_^',
license => 'urmom',
);
my @smiles = (
'(-.-)zzZ',
'-_-zzZ',
'(o)_(o)',
'Q(._.Q)',
'•^_^•',
'•^-^•',
'=\' т \'=',
'fO_o',
'm9(^Д^)',
'(o )Y( o)',
'm(_ _)m',
'(´・ω・`)',
'<`∀´>',
'(`ハ´)',
'(`・ω・´)',
'(´;ω;`)',
'ヽ(´ー`)ノ',
'ヽ(`Д´)ノ',
'(#゚Д゚)',
'( ´Д`)',
'( ゚Д゚)',
'┐(\'~`;)┌',
'(´∀`)',
'( ´_ゝ`)',
'Σ(゜д゜;)',
'( ゚ ヮ゚)',
'キタ━━━━━━(゚∀゚)━━━━━━!!!!! ',
'⊂二二二( ^ω^)二⊃',
'(*´Д`)ハァハァ',
'(((( ;゚Д゚)))',
'Σ(゚Д゚)',
'( ´∀`)σ)∀`)',
'( ゚д゚)',
'(´ー`)y-~~',
'm9(・∀・)',
'(\'A`)',
'( ´,_ゝ`)',
'(゚Д゚;≡;゚Д゚)',
'(・∀・)つ⑩',
'(゚д゚)',
'(゚⊿゚)',
'щ(゚Д゚щ)',
'(・∀・)',
'(・A・)',
'(゚∀゚)',
'( ´Д⊂ヽ',
'エェェ(´д`)ェェエ',
'( ̄ー ̄)',
'ヽ(´▽`)/',
'^ㅂ^',
'( ´ ௰`)',
'(。◕‿‿◕。)',
'( ・ิω・ิ)',
'ಠ_ృ',
'❤★❤ ☆_☆ ❤★❤',
'( ´∀`)☆',
'(≧ω≦)',
'(´ー`)',
'(つд`)',
'( ̄。 ̄)',
'(*~▽~)',
'( ^▽^)σ)~O~)',
'(=゜ω゜)',
'(´ω`)',
'(ノ_・。)',
'(-_- )ノ',
'(´ヘ`;)',
'(>_<。)',
'( ´∀`)',
'((((゜д゜;))))',
'(=ω=;)',
'(。・_・。)',
'(o´ω`o)',
'(^▽^)',
'(*´д`*)',
'( ̄□ ̄)',
'(。>_<。)',
'(;_・)',
'( ¯◡◡¯·)',
'щ(゚Д゚)屮',
'°ω°',
'(´・ω・`)',
'ヽ(●´ε`●)ノ',
'◕ ◡ ◕',
'。◕‿‿◕。',
'ヽ(´ー` )ノ',
'( ´ω`)',
'( ・-・)',
'(゚、 ƪ)',
'ヽ( ゚ヮ・)ノ.・゚*。・+☆',
'( ¯◡◡¯·)ლ(╹◡╹ლ)',
'ヘ(゚Д゚ヾ)',
'ºº∞( Θ ω Θ )∞ºº',
'(ノ ಠ益ಠ)ノ~ (;。▽。)ヽ',
'(゜△゜;)',
'¯\\(o_°)/¯',
'(^ω^)',
'のヮの',
'( . ¸ ·)',
'( ≖‿≖)',
'(≖‿≖ )',
'‹^› ☺ ‹^›',
'(″・ิ_・ิ)っ',
'・ω・',
'◔ิд◔',
'(Ò_Ó)',
'( ゚ω゚ )',
'(^▽^*)',
'( ^ω^)',
'(・-・)',
'U・ェ・U',
'(><; )',
'(・ ヮ・)',
'(゚ム゚ )',
'( `⊇`)',
'(-@∀@)',
'(´_ゝ`)',
'( ・∀・)',
'(。_°☆\(- - ) バシっ!',
'(^_-)☆',
'(^_-)',
'/_-)ウウッ',
'(×_×;) シユン',
'(×_×#',
'(+o+)',
'(#+_+)',
'(+_+)',
'(ToT)',
'(ΘoΘ)σ',
'σ(ΘoΘ)',
'(;^^)σ',
'σ(^^;)',
'(;⌒▽⌒)σ',
'σ(⌒▽⌒;)',
'( ̄∇ ̄;)σ',
'σ( ̄∇ ̄;)',
'(;゜◆゜)σ',
'σ(゜◆゜;)',
'(・_・)σ',
'σ(・_・)',
'( ̄▽ ̄)σ',
'σ( ̄▽ ̄)',
'(⌒ー⌒)σ',
'σ(⌒ー⌒)',
'(;^^)σ',
'σ(^^;)',
'(・_・)σ',
'σ(・_・)',
'(;^_^)σ',
'σ(^_^;)',
'(●^o^●)σ',
'σ(●^o^●)',
'(▼▼;)σ',
'σ(▼▼;)',
'( ̄。 ̄)σ',
'σ( ̄。 ̄)',
'(;-_-)σ',
'σ(-_-;)',
'(o^_^o)σ',
'σ(o^_^o)',
'(;TεT)σ',
'σ(TεT;)',
'(?・・)σ',
'σ(・・?)',
'(;”ε”)σ',
'σ(”ε”;)',
'(メ-_-)σ',
'σ(-_-メ)',
'(;"ε")σ',
'σ("ε";)',
'( ^ー゜)σ',
'σ( ^ー゜)',
'(^◇^;)σ',
'σ(^◇^;)',
'(--#)σ',
'σ(--#)',
'(ToT)σ',
'σ(ToT)',
'(‐_‐)σ',
'σ(‐_‐)',
'(*・・)σ',
'σ(・・*)',
'(^ー゜)σ',
'σ(^ー゜)',
'(^0^)σ',
'σ(^0^)',
'(;; ̄ー ̄)σ',
'σ( ̄ー ̄;;)',
'(゜-^*)σ',
'σ(゜-^*)',
'σ(д・`★)ミィー',
'(σ・c_,・●)ゥチ ',
'σ(・´ω`・)マロ',
'σ(´∀`●)ァタシ ',
'σ(´┏∀┓`)オイラ',
'σ(´Д`●)ぉぃら',
'σ(●´з`)',
'(σ´д`*)オイラ',
'σ(´Ω`*) ',
'σ(∀`〃)',
'σ(*´_ω`)ゥチ ',
'σ(゚∀゚*)me♪',
'σ(゚∀゚∬オレ',
'(σ ゚,_・・゚)俺',
'σ(´゚,_ゝ゚`)me ',
'σ(´ェ`●)me?',
'オイラ? σ("ε";)))) ',
'σ|∵*|もひゃ?',
'σ((´(エ)`)) ',
'σ(^ω^★)ワタシ ? ',
'σ┃・ω・`*┃',
'σ(・ω・ω・ω・ω・) ',
'(p−<)',
'(o_ _)o.。oOO',
'(つω・‘)',
'(つД`)',
'(σд-)zzz',
'(−ρ−)........zzz',
'(-o-)。o○',
'(−0−)ZZZ',
'Zzz....(_ _*)・.。*',
'才ャス彡......φ(*´о)ゞ ',
'(⊂((・⊥・))⊃)',
'▽・_・;▽',
'~(-仝-)~',
'@^ェ^@',
'(=^・^=)',
'Σ^)/',
'⊂(^(工)^)⊃',
' ̄(=∵=) ̄',
'(°°)~',
'(0^A^0)',
'd((^ェ^))b',
'▼・。・▼」」」」ー',
'⊂((〃\'⊥\'〃))⊃',
'○(・x・)○',
'◎▼◎',
'( ・(OO)・ )',
'・°°・..・°°・・%゛',
'┗(=^^=)┛',
'(=・ェ・=)',
'( ̄(││) ̄)',
'(=`(∞)´=)',
'ζ゜ミ',
'⊂(◎(工)◎)⊃',
'▽(・o・)▽',
'O(-@-)O',
'ヾ⊆ ̄ ^⊇ ε==3',
'ε==3 ⊆^  ̄⊇ゝ',
'<^)',
'(o∀o)',
'(-Φ-)',
'‘∀‘',
'(^(≡・T・≡)^)',
'(^(=・T・=)^)',
'O(-@-)O',
'⌒(ё)⌒',
'ヘ(ё)ヘ',
'ミ・・ミ',
'ミ..ミ',
'=^_^=',
'⊆(⌒◎⌒)⊇',
'≫(\'♀\')≪',
'(=^..^=)',
'(●・^^^^^)))~~',
'└(o|o)┘',
'(°ё°)',
'(^ф^)',
'(´ё`)',
'(∩ё∩)',
);
sub smile {
my ($data,$server,$witem) = @_;
return unless $witem;
my $string = $data;
my @strang = split '', $data;
for my $num (0..$#strang) {
$strang[$num] = $smiles[int(rand($#smiles+1))] if $strang[$num] eq '#';
}
$string = join '', @strang;
$server->command("MSG $witem->{name} $string");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment