aboutsummaryrefslogtreecommitdiffstats
path: root/plugin.py
diff options
context:
space:
mode:
authorkongr45gpen <electrovesta@gmail.com>2014-04-25 13:41:13 +0300
committerkongr45gpen <electrovesta@gmail.com>2014-04-25 13:41:13 +0300
commit29f8b71c828f1c1d423e1f9f032db3c574eb499a (patch)
treecf4c2f3b144f34a9c9476f5cb8b82b3e69ef22e2 /plugin.py
parent02409d18d3604a87b53b70181246b6b92b27b4c2 (diff)
downloadsupybot_github-29f8b71c828f1c1d423e1f9f032db3c574eb499a.tar.gz
supybot_github-29f8b71c828f1c1d423e1f9f032db3c574eb499a.tar.bz2
supybot_github-29f8b71c828f1c1d423e1f9f032db3c574eb499a.zip
Remove old "toast" command
Diffstat (limited to 'plugin.py')
-rw-r--r--plugin.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/plugin.py b/plugin.py
index 74f0e0a..dc15d2c 100644
--- a/plugin.py
+++ b/plugin.py
@@ -28,7 +28,6 @@
import re
import json
import time
-import random
import urllib
import urlparse
import threading
@@ -67,8 +66,6 @@ class Github(callbacks.Plugin):
def __init__(self, irc):
self.__parent = super(Github, self)
self.__parent.__init__(irc)
- self.rng = random.Random() # create our rng
- self.rng.seed() # automatically seeds with current time
server_class = BaseHTTPServer.HTTPServer
self.httpd = server_class(('', 8093), RequestHandler.GithubHandler)
t = threading.Thread(target=self.ServerStart, args=(self.httpd,))
@@ -84,18 +81,6 @@ class Github(callbacks.Plugin):
self.__parent.die()
reload(RequestHandler)
- def toast(self, irc, msg, args, seed, items):
- """<seed> <item1> [<item2> ...]
-
- Returns the next random number from the random number generator.
- """
- if seed < len(items):
- irc.error('<number of items> must be less than the number of arguments.')
- return
- irc.reply('%s %s %s' % (str(seed), str(self.rng.random()), utils.str.commaAndify(items)))
-
- toast = wrap(toast, ['float', many('anything')])
-
Class = Github

© 2014-2024 Faster IT GmbH | imprint | privacy policy