This commit is contained in:
Sarimoko 2022-02-13 05:23:31 -08:00
parent 2022de8338
commit 333bbd9af3
3 changed files with 36 additions and 8 deletions

8
www/gitpull.php Normal file
View File

@ -0,0 +1,8 @@
<?php
/* ssh-keygen -t rsa -b 4096 -C "deploy */
echo("<br />\n");
chdir('/var/www/Boto');
touch(GITPULLMASTER);
?>

10
www/gitpull.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
cd /home/user/www/example.com/repository
while true ; do
if [[ -f GITPULLMASTER ]] ; then
git pull > gitpull.log 2>&1
mv GITPULLMASTER GITPULLMASTER.`date +"%Y%m%d%H%M%S"`
fi
sleep 10
done

View File

@ -1,16 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sariboto</title>
<style>
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twitch Chat Counter</title>
<link rel="stylesheet" href="https://ez-css.now.sh">
</head>
<body>
<h1 id="count"></h1>
<div>
<center>
<marquee><p>Type 1 in the chat!</p></marquee>
<em>(broadcaster only)</em>
<br />
<code>!start-count | !end-count | !clear-count</code>
<br />
<br />
</center>
<small id="status"></small>
<h1 id="count">Waiting for count...</h1>
<h3 id="users"></h3>
<script src="tmi.min.js"></script>
<script src="boto.js"></script>
</div>
<script src="tmi.min.js"></script>
<script src="boto.js"></script>
</body>
</html>