Esempio n. 1
0
 def mulher(self, string):
     db = Database()
     try:
         db.insert('mulheres', string.strip())
     except:
         return False
     return True
Esempio n. 2
0
 def goatrance(self, string):
     db = Database()
     try:
         db.insert('goatrance', string.strip())
     except:
         return False
     return True
Esempio n. 3
0
 def noob(self, string):
     db = Database()
     try:
         db.insert('noob', string.strip())
     except:
         return False
     return True
Esempio n. 4
0
 def ama(self, string):
     db = Database()
     try:
         db.insert('amoroso', string.strip())
     except:
         return False
     return True
Esempio n. 5
0
 def quote(self, string):
     db = Database()
     try:
         db.insert('quotes', string.strip())
     except:
         return False
     return True
Esempio n. 6
0
 def xingamento(self, string):
     db = Database()
     try:
         db.insert('xingamentos', string.strip())
     except:
         return False
     return True
Esempio n. 7
0
 def politica(self, string):
     db = Database()
     try:
         db.insert('politica', string.strip())
     except:
         return False
     return True
Esempio n. 8
0
 def docs(self, string):
     db = Database()
     try:
         db.insert('docs', string.strip())
     except:
         return False
     return True
Esempio n. 9
0
 def zuera(self, string):
     db = Database()
     try:
         db.insert('zuera', string.strip())
     except:
         return False
     return True
Esempio n. 10
0
 def nerdices(self, string):
     db = Database()
     try:
         db.insert('nerdices', string.strip())
     except:
         return False
     return True
Esempio n. 11
0
 def reggae(self, string):
     db = Database()
     try:
         db.insert('reggae', string.strip())
     except:
         return False
     return True
Esempio n. 12
0
 def chill(self, string):
     db = Database()
     try:
         db.insert('chill', string.strip())
     except:
         return False
     return True
Esempio n. 13
0
 def _crypto(self):
     cron = '21:47'
     _run = False
     d = datetime.strptime(cron, "%H:%M")
     if not _run:
         if datetime.today().hour > str(d).split(
                 ':')[0] and datetime.today().minute > str(d).split(':')[1]:
             try:
                 _run = True
                 db = Database()
                 _hash = db.select('hash', 'crypto')[0][0]
                 #admins = [ nick[0] for nick in db.select('admin', 'admins') ]
                 admins = ['but3k4']
                 for _nick in admins:
                     self.conn.privmsg(
                         _nick,
                         '######################################################################'
                     )
                     self.conn.privmsg(
                         _nick, 'Remova a senha antiga:    /delkey #area31')
                     self.conn.privmsg(
                         _nick,
                         'Adicione a nova senha:    /setkey ' + _hash)
             except Exception, e:
                 _f = open('log/startup.log', 'a')
                 _f.write("Error: %s" % repr(e))
                 _f.close()
Esempio n. 14
0
 def admin(self, _nick):
     db = Database()
     try:
         db.delete('admins', 'admin', _nick.strip())
     except:
         return False
     return True
Esempio n. 15
0
 def guei(self):
     try:
         db = Database()
         xinga = db.select('xinga', 'xingamentos', 1)[0][0]
         user = db.select('guei', 'guei', 1)[0][0]
         self.parent.conn.privmsg(self.channel, '%s, %s' % (user, xinga))
     except:
         return False
Esempio n. 16
0
 def check_admin(self):
     db = Database()
     self.admins = None
     try:
         self.admins = [ nick[0] for nick in db.select('admin', 'admins') ]
     except:
         return False
     return self.nick in self.admins
Esempio n. 17
0
 def guei(self):
     db = Database()
     self.xinga = None
     try:
         self.xinga = db.select('xinga', 'xingamentos', 1)[0][0]
     except:
         return False
     if self.xinga:
         self.parent.conn.privmsg(self.channel, '%s, %s' % ('alexos', self.xinga))
Esempio n. 18
0
 def quote(self):
     db = Database()
     self.quote = None
     try:
         self.quote = db.select('quote', 'quotes', 1)[0][0]
     except:
         return False
     if self.quote:
         self.parent.conn.privmsg(self.channel, self.quote)
Esempio n. 19
0
 def chill(self):
     db = Database()
     self.chill = None
     try:
         self.chill = db.select('chilli', 'chilli', 1)[0][0]
     except:
         return False
     if self.chill:
         self.parent.conn.privmsg(self.channel, self.chill)
Esempio n. 20
0
 def politica(self):
     db = Database()
     self.politica = None
     try:
         self.politica = db.select('politica', 'politica', 1)[0][0]
     except:
         return False
     if self.politica:
         self.parent.conn.privmsg(self.channel, self.politica)
Esempio n. 21
0
 def meme(self):
     db = Database()
     self.meme = None
     try:
         self.meme = db.select('meme', 'meme', 1)[0][0]
     except:
         return False
     if self.meme:
         self.parent.conn.privmsg(self.channel, self.meme)
Esempio n. 22
0
 def goatrance(self):
     db = Database()
     self.goatrance = None
     try:
         self.goatrance = db.select('goatrance', 'goatrance', 1)[0][0]
     except:
         return False
     if self.goatrance:
         self.parent.conn.privmsg(self.channel, self.goatrance)
Esempio n. 23
0
 def docs(self):
     db = Database()
     self.docs = None
     try:
         self.docs = db.select('docs', 'docs', 1)[0][0]
     except:
         return False
     if self.docs:
         self.parent.conn.privmsg(self.channel, self.docs)
Esempio n. 24
0
 def reggae(self):
     db = Database()
     self.reggae = None
     try:
         self.reggae = db.select('reggae', 'reggae', 1)[0][0]
     except:
         return False
     if self.reggae:
         self.parent.conn.privmsg(self.channel, self.reggae)
Esempio n. 25
0
 def nerdices(self):
     db = Database()
     self.nerdices = None
     try:
         self.nerdices = db.select('nerdices', 'nerdices', 1)[0][0]
     except:
         return False
     if self.nerdices:
         self.parent.conn.privmsg(self.channel, self.nerdices)
Esempio n. 26
0
 def mulher(self):
     db = Database()
     self.mulher = None
     try:
         self.mulher = db.select('mulher', 'mulheres', 1)[0][0]
     except:
         return False
     if self.mulher:
         self.parent.conn.privmsg(self.channel, self.mulher)
Esempio n. 27
0
 def zuera(self):
     db = Database()
     self.zuera = None
     try:
         self.zuera = db.select('zuera', 'zuera', 1)[0][0]
     except:
         return False
     if self.zuera:
         self.parent.conn.privmsg(self.channel, self.zuera)
Esempio n. 28
0
 def rock(self):
     db = Database()
     self.rock = None
     try:
         self.rock = db.select('rock', 'rock', 1)[0][0]
     except:
         return False
     if self.rock:
         self.parent.conn.privmsg(self.channel, self.rock)
Esempio n. 29
0
 def ama(self):
     if len(self.args) < 1:
         self.parent.conn.privmsg(
             self.channel,
             '%s, deixa de ser burro e ama alguém. ' % self.nick)
     else:
         db = Database()
         self.ama = None
         try:
             self.ama = db.select('ama', 'amoroso', 1)[0][0]
         except:
             return False
         if self.ama:
             self.parent.conn.privmsg(self.channel,
                                      '%s, %s' % (self.args[0], self.ama))
Esempio n. 30
0
 def noob(self):
     if len(self.args) < 1:
         self.parent.conn.privmsg(
             self.channel,
             '%s, deixa de ser burro e zoa alguém direito. ' % self.nick)
     else:
         db = Database()
         self.noob = None
         try:
             self.noob = db.select('noob', 'noob', 1)[0][0]
         except:
             return False
         if self.noob:
             self.parent.conn.privmsg(self.channel,
                                      '%s, %s' % (self.args[0], self.noob))