dbs
This commit is contained in:
parent
12fa932906
commit
7e39e0ef42
217
plugins/emote.db
Normal file
217
plugins/emote.db
Normal file
File diff suppressed because one or more lines are too long
163
plugins/greet.db
Normal file
163
plugins/greet.db
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
Afrikaans: Hallo
|
||||||
|
|
||||||
|
Albanian: Mirë dita
|
||||||
|
|
||||||
|
Amharic: ታዲያስ (Tadiyas)
|
||||||
|
|
||||||
|
Arabic: مرحبا (Marhaban or Marhabaa)
|
||||||
|
|
||||||
|
Azerbaijani: Салам / سلام (salam)
|
||||||
|
|
||||||
|
Basque: Kaixo
|
||||||
|
|
||||||
|
Bengali: নমস্কার (Nomoshkaar or Namaskar)
|
||||||
|
|
||||||
|
Bosnian: Zdravo
|
||||||
|
|
||||||
|
Brazilian Portugese: Olá or Oi (view Portuguese language schools in Brazil)
|
||||||
|
|
||||||
|
Breton: Demat
|
||||||
|
|
||||||
|
Bulgarian: Здравейте (Zdravey)
|
||||||
|
|
||||||
|
Catalan: Hola
|
||||||
|
|
||||||
|
Chichewa: Moni
|
||||||
|
|
||||||
|
Corsican: Bonghjornu
|
||||||
|
|
||||||
|
Croatian: Bok
|
||||||
|
|
||||||
|
Czech: Ahoj
|
||||||
|
|
||||||
|
Danish: Hej
|
||||||
|
|
||||||
|
Dutch: Hallo
|
||||||
|
|
||||||
|
English: Hello
|
||||||
|
|
||||||
|
Espetanto: Saluton
|
||||||
|
|
||||||
|
Estonian: Tere
|
||||||
|
|
||||||
|
Farsi: سلام or درود بر تو or درود بر شما (Salaam or Dorood bar to or Dorood bar shoma)
|
||||||
|
|
||||||
|
Fijian: Bula
|
||||||
|
|
||||||
|
Filipino: Kamusta
|
||||||
|
|
||||||
|
Finnish: Hei or Terve
|
||||||
|
|
||||||
|
French: Bonjour (view French language schools in France)
|
||||||
|
|
||||||
|
Georgian: მიესალმები (miesalmebi)
|
||||||
|
|
||||||
|
German: Hallo (view German language schools in Germany)
|
||||||
|
|
||||||
|
Greek: Χαίρε (chai-ray) or Γεια σου (yiassoo)
|
||||||
|
|
||||||
|
Hausa: Hello
|
||||||
|
|
||||||
|
Hawaiian: Aloha
|
||||||
|
|
||||||
|
Hebrew: שלום (Shalom)
|
||||||
|
|
||||||
|
Hindi: नमस्ते (Namaste)
|
||||||
|
|
||||||
|
Hungarian: Sziasztok
|
||||||
|
|
||||||
|
Indonesian: Halo or Hai
|
||||||
|
|
||||||
|
Irish: Dia dhuit
|
||||||
|
|
||||||
|
Italian: Ciao
|
||||||
|
|
||||||
|
Japanese: こんにちは (Kon'nichiwa) (view Japanese language schools in Japan)
|
||||||
|
|
||||||
|
Kannada: ನಮಸ್ಕಾರ (Namaskār)
|
||||||
|
|
||||||
|
Khmer: ជំរាបសួរ (Cham reap sour)
|
||||||
|
|
||||||
|
Korean: 안녕 (Annyeong)
|
||||||
|
|
||||||
|
Lao: ສະບາຍດີ (sabaidi)
|
||||||
|
|
||||||
|
Latin: Salve
|
||||||
|
|
||||||
|
Latvian: Sveiki
|
||||||
|
|
||||||
|
Limburgish: Hallau
|
||||||
|
|
||||||
|
Lithuanian: Sveiki
|
||||||
|
|
||||||
|
Macedonian: Добар ден (Dobar den)
|
||||||
|
|
||||||
|
Malaysian: Selamat tengahari
|
||||||
|
|
||||||
|
Maltese: Ħelow
|
||||||
|
|
||||||
|
Mandarin Chinese: 你好 (Nǐ hǎo) (view Chinese language schools in China)
|
||||||
|
|
||||||
|
Maori: Kia ora
|
||||||
|
|
||||||
|
Nepali: नमस्ते (Namaste)
|
||||||
|
|
||||||
|
Norwegian: Hei
|
||||||
|
|
||||||
|
Odia: ନମସ୍କାର (Namaskār)
|
||||||
|
|
||||||
|
Pashto: سلام (salam)
|
||||||
|
|
||||||
|
Polish: Cześć or Hej
|
||||||
|
|
||||||
|
Portugese: Olá or Oi (view Portuguese language schools in Portugal)
|
||||||
|
|
||||||
|
Romanian: Buna
|
||||||
|
|
||||||
|
Russian: Привет (Preevyet) (view Russian language schools in Russia)
|
||||||
|
|
||||||
|
Samoan: Talofa
|
||||||
|
|
||||||
|
Scottish Gaelic: Haló
|
||||||
|
|
||||||
|
Serbian: Здраво (Zdravo)
|
||||||
|
|
||||||
|
Shanghainese: 侬好 (Noŋ hɔ)
|
||||||
|
|
||||||
|
Shona: Mhoro
|
||||||
|
|
||||||
|
Slovak: Ahoj
|
||||||
|
|
||||||
|
Slovenian: Zdravo
|
||||||
|
|
||||||
|
Spanish: Hola (view Spanish language schools in Spain / Spanish language courses in South America)
|
||||||
|
|
||||||
|
Swabian: Grüss Gott
|
||||||
|
|
||||||
|
Swahili: Hodi
|
||||||
|
|
||||||
|
Swedish: Hej or Hallá
|
||||||
|
|
||||||
|
Tamil: வனக்கம் (Vanakkam)
|
||||||
|
|
||||||
|
Vietnamese: Xin chào (Krekt)
|
||||||
|
|
||||||
|
Woiworung: Womenjeka
|
||||||
|
|
||||||
|
Yiddish: שלום (Sholem)
|
||||||
|
|
||||||
|
Tamil: வணக்கம் (Vanakaam)
|
||||||
|
|
||||||
|
Telugu: నమస్కారం (Namaskāram)
|
||||||
|
|
||||||
|
Thai: (Female) สวัสดีค่ะ (Sawatdeekha) / (Male): สวัสดีครับ (Sawatdeekhrap) (view Thai language schools in Thailand)
|
||||||
|
|
||||||
|
Turkish: Merhaba
|
||||||
|
|
||||||
|
Vietnamese: Chào bạn
|
||||||
|
|
||||||
|
Welsh: Helo
|
||||||
|
|
||||||
|
Yiddish: העלא (Hela)
|
||||||
|
|
||||||
|
Zulu: Sawubona
|
@ -1,16 +1,18 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from irc3.plugins.command import command
|
from irc3.plugins.command import command
|
||||||
import irc3
|
import irc3
|
||||||
#import ipdb
|
import random
|
||||||
|
|
||||||
testfile = ['a'*40,'b'*40,'c'*40,'d'*40,'1'*40,'2'*40,'3'*40,'4'*40]
|
testfile = ['a'*40,'b'*40,'c'*40,'d'*40,'1'*40,'2'*40,'3'*40,'4'*40]
|
||||||
KRYLON_FILE = testfile
|
KRYLON_FILE = testfile
|
||||||
|
|
||||||
TOTAL_BOTS = 4
|
TOTAL_BOTS = 50
|
||||||
CONNECTED_BOTS = []
|
CONNECTED_BOTS = []
|
||||||
ONLINE_BOTS = []
|
ONLINE_BOTS = []
|
||||||
INITIALIZED = 0
|
INITIALIZED = 0
|
||||||
|
|
||||||
|
dir_path = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
@irc3.plugin
|
@irc3.plugin
|
||||||
class Plugin(object):
|
class Plugin(object):
|
||||||
|
|
||||||
@ -20,14 +22,40 @@ class Plugin(object):
|
|||||||
self.channel = context.config.channel
|
self.channel = context.config.channel
|
||||||
self.init = 0
|
self.init = 0
|
||||||
|
|
||||||
|
def __emoj(self,s):
|
||||||
|
emote_db = '%s/emote.db' % dir_path
|
||||||
|
emoj = random.choice(list(open(emote_db)))
|
||||||
|
random.randint(0,1)
|
||||||
|
if random.randint(0,1) == 0:
|
||||||
|
emoj = "\x0304{}\x0F".format(emoj)
|
||||||
|
else:
|
||||||
|
emoj = "\x0303{}\x0F".format(emoj)
|
||||||
|
s = s + ' ▶ ' + emoj
|
||||||
|
return s
|
||||||
|
|
||||||
|
def __greet(self):
|
||||||
|
greet_db = '%s/greet.db' % dir_path
|
||||||
|
greet = random.choice(list(open(greet_db)))
|
||||||
|
greet
|
||||||
|
return s
|
||||||
|
|
||||||
|
def __symbol(self,s):
|
||||||
|
symbol_db = '%s/symbol.db' % dir_path
|
||||||
|
symbol = random.choice(list(open(symbol_db)))
|
||||||
|
symbol
|
||||||
|
return s
|
||||||
|
|
||||||
def krylon(self):
|
def krylon(self):
|
||||||
if self.init == 0:
|
if self.init == 0:
|
||||||
KRYLON_FILE.reverse()
|
KRYLON_FILE.reverse()
|
||||||
self.init = 1
|
self.init = 1
|
||||||
MSG='sent validation test'
|
NICK='d'
|
||||||
|
SYMBOL=self.__symbol()
|
||||||
|
GREET=self.__greet()
|
||||||
|
MSG='{}: {} {} <<<ARMED>>>'.format(NICK,SYMBOL,GREET)
|
||||||
CHN='#sh0rtbus'
|
CHN='#sh0rtbus'
|
||||||
|
MSG = self.__emoj(MSG)
|
||||||
self.context.privmsg(CHN,MSG)
|
self.context.privmsg(CHN,MSG)
|
||||||
BotTestCase.assertSent(['PRIVMSG {} :{}'.format(CHN,MSG)])
|
|
||||||
|
|
||||||
@irc3.event(irc3.rfc.JOIN)
|
@irc3.event(irc3.rfc.JOIN)
|
||||||
def welcome(self, mask, channel, **kw):
|
def welcome(self, mask, channel, **kw):
|
||||||
|
4
plugins/symbol.db
Normal file
4
plugins/symbol.db
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ψ
|
||||||
|
☠
|
||||||
|
☽
|
||||||
|
☀
|
Loading…
Reference in New Issue
Block a user