David 10 rokov pred
rodič
commit
93a4c4a78d
5 zmenil súbory, kde vykonal 9 pridanie a 1 odobranie
  1. 1 0
      bot.py
  2. BIN
      front/.index.html.swp
  3. 5 0
      front/index.html
  4. BIN
      front/js/.app.js.swp
  5. 3 1
      front/js/app.js

+ 1 - 0
bot.py

@@ -130,6 +130,7 @@ class IRCClient():
         msg=msg.replace("\x01","")
         if not msg.startswith("DCC"):
             self.EXTRA_OUTPUT=msg;
+            print(msg)
             self.log(msg)
             return
 

BIN
front/.index.html.swp


+ 5 - 0
front/index.html

@@ -3,6 +3,11 @@
 	<head>
 		<script src="js/angular.min.js"></script>
 		<script src="js/app.js"></script>
+		<style>
+			body { width: 70%; margin:0px auto; }
+			td { padding: 5px; }
+			input[type=text] {background-color:white;color:black;}
+		</style>
 	</head>
 <body>
 	<div ng-controller="main">

BIN
front/js/.app.js.swp


+ 3 - 1
front/js/app.js

@@ -1,6 +1,6 @@
 app=angular.module('app', []);
 
-app.controller('main', function($scope,$http) {
+app.controller('main', function($scope,$http,$interval) {
 	$scope.list=[];
 	$scope.book="";
 	$scope.extension="";
@@ -44,4 +44,6 @@ app.controller('main', function($scope,$http) {
 			console.log("err");
 		});
 	};
+
+	$interval($scope.getList, 1000);
 });