Send a random emoji to the current buffer.
Author: jmui
— Version: 0.1
— License: GPL-3.0-or-later
For WeeChat ≥ 0.3.0.
Tags: emoji, py2, py3
Added: 2018-04-02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 | # -*- coding: utf-8 -*- # # Copyright (c) 2017 jmui <jmui@jmui.net> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # # # # A simple script to print a random emoji chosen from a list # # Usage: /emojis # # # History: # 2017-11-17 # 0.1 First version # # SCRIPT_NAME = "emojis" SCRIPT_AUTHOR = "jmui <jmui@jmui.net>" SCRIPT_VERSION = "0.1" SCRIPT_LICENSE = "GPL3" SCRIPT_DESC = "Send a random emoji to the current buffer" import_ok = True try: import weechat except ImportError: print("Script must be used in WeeChat.") import_ok = False from random import choice emojiList = [ '¢‿¢', '©¿© o', 'ª{•̃̾_•̃̾}ª', '¬_¬', '¯\(º_o)/¯', '¯\(º o)/¯', '¯\_(⊙︿⊙)_/¯', '¯\_(ツ)_/¯', '°ω°', '°Д°', '°‿‿°', '´ ▽ ` )ノ', '¿ⓧ_ⓧﮌ', 'Ò,ó', 'ó‿ó', 'ô⌐ô', 'ôヮô', 'ŎםŎ', 'ŏﺡó', 'ʕ•̫͡•ʔ', 'ʕ•ᴥ•ʔ', 'ʘ‿ʘ', '˚•_•˚', '˚⌇˚', '˚▱˚', 'Σ ◕ ◡ ◕', 'Σ (゚Д゚;)', 'Σ(゚Д゚;≡;゚д゚)', 'Σ(゚Д゚ )', 'Σ(||゚Д゚)', 'Φ,Φ', 'δﺡό', 'σ_σ', 'д_д', 'ф_ф', 'щ(゚Д゚щ)', 'щ(ಠ益ಠщ)', 'щ(ಥДಥщ)', 'Ծ_Ծ', '٩๏̯͡๏۶', '٩๏̯͡๏)۶', '٩◔̯◔۶', '٩(×̯×)۶', '٩(̾●̮̮̃̾•̃̾)۶', '٩(͡๏̯͡๏)۶', '٩(͡๏̯ ͡๏)۶', '٩(ಥ_ಥ)۶', '٩(•̮̮̃•̃)۶', '٩(●̮̮̃•̃)۶', '٩(●̮̮̃●̃)۶', '٩(。͡•‿•。)۶', '٩(-̮̮̃•̃)۶', '٩(-̮̮̃-̃)۶', '۞_۞', '۞_۟۞', '۹ↁﮌↁ', '۹⌤_⌤۹', '॓_॔', '१✌◡✌५', '१|˚–˚|५', 'ਉ_ਉ', 'ଘ_ଘ', 'இ_இ', 'ఠ_ఠ', 'రృర', 'ಠ¿ಠi', 'ಠ‿ಠ', 'ಠ⌣ಠ', 'ಠ╭╮ಠ', 'ಠ▃ಠ', 'ಠ◡ಠ', 'ಠ益ಠ', 'ಠ益ಠ', 'ಠ︵ಠ凸', 'ಠ , ಥ', 'ಠ.ಠ', 'ಠoಠ', 'ಠ_ృ', 'ಠ_ಠ', 'ಠ_๏', 'ಠ~ಠ', 'ಡ_ಡ', 'ತಎತ', 'ತ_ತ', 'ಥдಥ', 'ಥ‿ಥ', 'ಥ⌣ಥ', 'ಥ◡ಥ', 'ಥ﹏ಥ', 'ಥ_ಥ', 'ಭ_ಭ', 'ರ_ರ', 'ಸ , ໖', 'ಸ_ಸ', 'ക_ക', 'อ้_อ้', 'อ_อ', 'โ๏௰๏ใ ื', '๏̯͡๏﴿', '๏̯͡๏', '๏̯͡๏﴿', '๏[-ิิ_•ิ]๏', '๏_๏', '໖_໖', '༺‿༻', 'ლ(´ڡ`ლ)', 'ლ(́◉◞౪◟◉‵ლ)', 'ლ(ಠ益ಠლ)', 'ლ(╹◡╹ლ)', 'ლ(◉◞౪◟◉‵ლ)', 'ლ,ᔑ•ﺪ͟͠•ᔐ.ლ', 'ᄽὁȍ ̪ őὀᄿ', 'ᕕ( ᐛ )ᕗ', 'ᕙ(⇀‸↼‶)ᕗ', 'ᕦ(ò_óˇ)ᕤ', 'ᶘ ᵒᴥᵒᶅ', '‘︿’', '•▱•', '•✞_✞•', '•(⌚_⌚)•', '•_•)', '‷̗ↂ凸ↂ‴̖', '‹•.•›', '‹› ‹(•¿•)› ‹›', '‹(ᵒᴥᵒ)›', '‹(•¿•)›', 'ↁ_ↁ', '⇎_⇎', '∩(︶▽︶)∩', '∩( ・ω・)∩', '≖‿≖', '≧ヮ≦', '⊂•⊃_⊂•⊃', '⊂⌒~⊃。Д。)⊃', '⊂(◉‿◉)つ', '⊂(゚Д゚,,⊂⌒`つ', '⊙ω⊙', '⊙▂⊙', '⊙▃⊙', '⊙△⊙', '⊙︿⊙', '⊙﹏⊙', '⊙0⊙', '⊛ठ̯⊛', '⋋ō_ō`', '━━━ヽ(ヽ(゚ヽ(゚∀ヽ(゚∀゚ヽ(゚∀゚)ノ゚∀゚)ノ∀゚)ノ゚)ノ)ノ━━━', '┌∩┐(◕_◕)┌∩┐', '┌( ಠ_ಠ)┘', '┌( ಥ_ಥ)┘', '╚(•⌂•)╝', '╭╮╭╮☜{•̃̾_•̃̾}☞╭╮╭╮', '╭✬⌢✬╮', '╮(─▽─)╭', '╯‵Д′)╯彡┻━┻', '╰☆╮', '□_□', '►_◄', '◃┆◉◡◉┆▷', '◉△◉', '◉︵◉', '◉_◉', '○_○', '●¿●\ ~', '●_●', '◔̯◔', '◔ᴗ◔', '◔ ⌣ ◔', '◔_◔', '◕ω◕', '◕‿◕', '◕◡◕', '◕ ◡ ◕', '◖♪_♪|◗', '◖|◔◡◉|◗', '◘_◘', '◙‿◙', '◜㍕◝', '◪_◪', '◮_◮', '☁ ☝ˆ~ˆ☂', '☆¸☆', '☉‿⊙', '☉_☉', '☐_☐', '☜(⌒▽⌒)☞', '☜(゚ヮ゚☜)', '☜-(ΘLΘ)-☞', '☝☞✌', '☮▁▂▃▄☾ ♛ ◡ ♛ ☽▄▃▂▁☮', '☹_☹', '☻_☻', '☼.☼', '☾˙❀‿❀˙☽', '♥‿♥', '♥╣[-_-]╠♥', '♥╭╮♥', '♥◡♥', '✌♫♪˙❤‿❤˙♫♪✌', '✌.ʕʘ‿ʘʔ.✌', '✌.|•͡˘‿•͡˘|.✌', '✖‿✖', '✖_✖', '❐‿❑', '⨀_⨀', '⨀_Ꙩ', '⨂_⨂', '〆(・∀・@)', '《〠_〠》', '【•】_【•】', '〠_〠', '〴⋋_⋌〵', 'の� �の', 'ニガー? ━━━━━━(゚∀゚)━━━━━━ ニガー?', 'ヽ(´ー` )ノ', 'ヽ(๏∀๏ )ノ', 'ヽ(`Д´)ノ', 'ヽ(o`皿′o)ノ', 'ヽ(`Д´)ノ', 'ㅎ_ㅎ', '乂◜◬◝乂', '凸ಠ益ಠ)凸', '句_句', 'Ꙩ⌵Ꙩ', 'Ꙩ_Ꙩ', 'ꙩ_ꙩ', 'Ꙫ_Ꙫ', 'ꙫ_ꙫ', 'ꙮ_ꙮ', '흫_흫', '句_句', '﴾͡๏̯͡๏﴿', '¯\(ºдಠ)/¯', '(·×·)', '(⌒Д⌒)', '(╹ェ╹)', '(♯・∀・)⊃', '( ´∀`)☆', '( ´∀`)', '(゜Д゜)', '(・∀・)', '(・A・)', '(゚∀゚)', '( ̄へ ̄)', '( ´☣///_ゝ///☣`)', '( つ Д `)', '_☆( ´_⊃`)☆_', '。◕‿‿◕。', '。◕ ‿ ◕。', '!⑈ˆ~ˆ!⑈', '!(`・ω・。)', '(¬‿¬)', '(¬▂¬)', '(¬_¬)', '(°ℇ °)', '(°∀°)', '(´ω`)', '(´◉◞౪◟◉)', '(´ヘ`;)', '(´・ω・`)', '(´ー`)', '(ʘ‿ʘ)', '(ʘ_ʘ)', '(˚இ˚)', '(͡๏̯͡๏)', '(ΘεΘ;)', '(ι´Д`)ノ', '(Ծ‸ Ծ)', '(॓_॔)', '(० ्०)', '(ு८ு_ .:)', '(ಠ‾ಠ)', '(ಠ‿ʘ)', '(ಠ‿ಠ)', '(ಠ⌣ಠ)', '(ಠ益ಠ ╬)', '(ಠ益ಠ)', '(ಠ_ృ)', '(ಠ_ಠ)', '(ಥ﹏ಥ)', '(ಥ_ಥ)', '(๏̯͡๏ )', '(ღ˘⌣˘ღ) ♫・*:.。. .。.:*・', '(ღ˘⌣˘ღ)', '(ᵔᴥᵔ)', '(•ω•)', '(•‿•)', '(•⊙ω⊙•)', '(• ε •)', '(∩▂∩)', '(∩︵∩)', '(∪ ◡ ∪)', '(≧ω≦)', '(≧◡≦)', '(≧ロ≦)', '(⊙ヮ⊙)', '(⊙_◎)', '(⋋▂⋌)', '(⌐■_■)', '(─‿‿─)', '(┛◉Д◉)┛┻━┻', '(╥_╥)', '(╬ಠ益ಠ)', '(╬◣д◢)', '(╬ ಠ益ಠ)', '(╯°□°)╯︵ ┻━┻', '(╯ಊ╰)', '(╯◕_◕)╯', '(╯︵╰,)', '(╯3╰)', '(╯_╰)', '(╹◡╹)凸', '(▰˘◡˘▰)', '(●´ω`●)', '(●´∀`●)', '(◑‿◐)', '(◑◡◑)', '(◕‿◕✿)', '(◕‿◕)', '(◕‿-)', '(◕︵◕)', '(◕ ^ ◕)', '(◕_◕)', '(◜௰◝)', '(◡‿◡✿)', '(◣_◢)', '(☞゚∀゚)☞', '(☞゚ヮ゚)☞', '(☞゚ ∀゚ )☞', '(☼◡☼)', '(☼_☼)', '(✌゚∀゚)☞', '(✖╭╮✖)', '(✪㉨✪)', '(✿◠‿◠)', '(✿ ♥‿♥)', '( ・∀・)', '( ・ัω・ั)?', '( ゚∀゚)o彡゜', '(。・_・。)', '(つд`)', '(づ。◕‿‿◕。)づ', '(ノಠ益ಠ)ノ彡┻━┻', '(ノ ◑‿◑)ノ', '(ノ_・。)', '(・∀・ )', '(屮゚Д゚)屮', '(︶ω︶)', '(︶︹︺)', '(;一_一)', '(`・ω・´)”', '(。◕‿‿◕。)', '(。◕‿◕。)', '(。◕ ‿ ◕。)', '(。♥‿♥。)', '(。・ω..・)っ', '(・ェ-)', '(ノ◕ヮ◕)ノ*:・゚✧', '(゚Д゚)', '(゚Д゚)y─┛~~', '(゚∀゚)', '(゚ヮ゚)', '( ̄□ ̄)', '( ̄。 ̄)', '( ̄ー ̄)', '( ̄(エ) ̄)', '( °٢° )', '( ´_ゝ`)', '( ͡° ͜ʖ ͡°)', '( ͡~ ͜ʖ ͡°)', '( ಠ◡ಠ )', '( •_•)>⌐■-■', '( ゚,_ゝ゚)', '( ・ิз・ิ)', '( ゚д゚)、', '( ^▽^)σ)~O~)', '((((゜д゜;))))', '(*´д`*)', '(*..Д`)', '(*..д`*)', '(*~▽~)', '(-’๏_๏’-)', '(-_- )ノ', '(/◔ ◡ ◔)/', '(///_ಥ)', '(;´Д`)', '(=ω=;)', '(=゜ω゜)', '(>\'o\')> ♥ <(\'o\'<)', '(n˘v˘•)¬', '(o´ω`o)', '(V)(°,,°)(V)', '(\/) (°,,°) (\/)', '(^▽^)', '(`・ω・´)', '(~ ̄▽ ̄)~', '\= (゚д゚)ウ', '@_@', 'd(*⌒▽⌒*)b', 'o(≧∀≦)o', 'o(≧o≦)o', 'q(❂‿❂)p', 'y=ー( ゚д゚)・∵.', '\˚ㄥ˚\ ', '\ᇂ_ᇂ\ ', '\(ಠ ὡ ಠ )/', '\(◕ ◡ ◕\)', '^̮^', '^ㅂ^', '_(͡๏̯͡๏)_', '{´◕ ◡ ◕`}', '\{ಠ_ಠ\}__,,|,', '{◕ ◡ ◕}', ] def print_face(data, buf, args): weechat.command(buf, choice(emojiList)) return weechat.WEECHAT_RC_OK if __name__ == "__main__" and import_ok: if weechat.register(SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, SCRIPT_DESC, "", ""): weechat.hook_command(SCRIPT_NAME, SCRIPT_DESC, "", "", "", "print_face", "") |