File tree Expand file tree Collapse file tree 3 files changed +34
-39
lines changed Expand file tree Collapse file tree 3 files changed +34
-39
lines changed Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2018 Philip Mayer
3
+ Copyright (c) 2018 Philip Mayer
([email protected] )
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change
1
+ # This plugin shows user type, kernel and architecture of a linux distribution
2
+ # please use this plugin only if you have a secure system configuration
3
+
4
+ class System < Plugin
5
+
6
+ def init ( init )
7
+ super
8
+ logger ( "INFO: INIT plugin #{ self . class . name } ." )
9
+ @@bot [ :bot ] = self
10
+ return @@bot
11
+ end
12
+
13
+ def name
14
+ self . class . name
15
+ end
16
+
17
+ def help ( h )
18
+ h << "<hr><span style='color:red;'>Plugin #{ self . class . name } </span><br>"
19
+ h << "<b>#{ Conf . gvalue ( "main:control:string" ) } sysinfo</b> - information about operating system and mumble-server<br>"
20
+ h
21
+ end
22
+
23
+ def handle_chat ( msg , message )
24
+ super
25
+ actor = msg . actor
26
+ if message == "sysinfo"
27
+ head = "<br><span style='color:lightblue;'>System information:</span><br>"
28
+ os = %x( uname -smr ) + "<br>"
29
+ messageto ( actor , head +os )
30
+ end
31
+ end
32
+ end
33
+
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments