disabled many plugins
This commit is contained in:
parent
0ba2001b62
commit
7cce9bf27e
119 changed files with 0 additions and 20 deletions
15
disabled_stuff/kernel.py
Normal file
15
disabled_stuff/kernel.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
import re
|
||||
|
||||
from util import hook, http
|
||||
|
||||
|
||||
@hook.command(autohelp=False)
|
||||
def kernel(inp, reply=None):
|
||||
contents = http.get("https://www.kernel.org/finger_banner")
|
||||
contents = re.sub(r'The latest(\s*)', '', contents)
|
||||
contents = re.sub(r'version of the Linux kernel is:(\s*)', '- ', contents)
|
||||
lines = contents.split("\n")
|
||||
|
||||
message = "Linux kernel versions: "
|
||||
message += ", ".join(line for line in lines[:-1])
|
||||
reply(message)
|
Reference in a new issue