aktueller Stand
This commit is contained in:
parent
19c2d224b1
commit
ff392f35ff
2
bot.js
2
bot.js
|
@ -30,7 +30,7 @@ var child = new (forever.Monitor)(__dirname+'/src/main.js', {
|
|||
watch: true,
|
||||
watchIgnoreDotFiles: true,
|
||||
watchIgnorePatterns: [
|
||||
'*.log', 'b/*', 't/*', 'node_modules/*'
|
||||
'*.log', 'b/*', 't/*', 'node_modules/* ./.*'
|
||||
],
|
||||
watchDirectory: __dirname,
|
||||
outFile: log_bot,
|
||||
|
|
|
@ -6,8 +6,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div class="contact">
|
||||
<h4>This is a side project of <a href="https://w0bm.com" target="_blank">w0bm.com</a></h4>
|
||||
<p>Got a problem? We have the answer: <a href="mailto:admin@w0bm.com">admin@w0bm.com</a></p>
|
||||
<p>Got a problem? We have the answer: <a href="mailto:admin@f0ck.space">admin@f0ck.space</a></p>
|
||||
<a href="/">return to main</a> <span id="themes"></span>
|
||||
</div>
|
||||
<script src="./s/theme.js"></script>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<link rel="icon" type="image/gif" href="./s/favicon.gif" />
|
||||
|
||||
<meta name="Description" content="f0cked by {{ username }}" />
|
||||
<meta property="og:image" content="https://f0ck.me/t/{{ id }}.png" />
|
||||
<meta property="og:image" content="https://f0ck.cf/t/{{ id }}.png" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="return"><a href="/" title="return to main">f0ck.me</a></div>
|
||||
|
|
|
@ -13,7 +13,7 @@ module.exports = (lib) => {
|
|||
name: 'parser',
|
||||
call: /https?:\/\/[\w-]+(\.[\w-]+)+\.?(:\d+)?(\/\S*)?/gi,
|
||||
level: 0,
|
||||
active: 0,
|
||||
active: 1,
|
||||
func: (e, userlevel) => {
|
||||
if(e.channel.getName() === lib.cfg.main.debugchannel || e.message.match(/(!|-)f0ck/i)) {
|
||||
if(!e.message.match(/(!|-)ignore/)) {
|
||||
|
@ -137,7 +137,7 @@ module.exports = (lib) => {
|
|||
},
|
||||
(err, res, data) => {
|
||||
if(!err) {
|
||||
var type = res.headers['content-type'];
|
||||
var type = res.headers['content-type'].split(";")[0];
|
||||
lib.log('MimeType: '+type);
|
||||
if(lib.cfg.main.allowedMimes.hasOwnProperty(type)) {
|
||||
if( ( data.length <= lib.cfg.main.maxFileSize ) || force || ( userlevel >= 60 && data.length <= (lib.cfg.main.maxFileSize * 2) ) ) {
|
||||
|
|
|
@ -8,10 +8,10 @@ module.exports = (lib) => {
|
|||
active: 0,
|
||||
func: (e) => {
|
||||
lib.sql.query("select count(`id`) as anzahl from `f0ck`.`items`", (err, rows, fields) => {
|
||||
var ret = "f0ck gave "+String(rows[0].anzahl);
|
||||
var ret = "gave "+String(rows[0].anzahl);
|
||||
du('./b/', function (err, size) {
|
||||
ret += " f0cks ("+lib.formatSize(size)+")";
|
||||
e.reply(ret);
|
||||
e.replyAction(ret);
|
||||
})
|
||||
});
|
||||
},
|
||||
|
|
|
@ -218,7 +218,8 @@ function Websrv(tlib) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
res.writeHead(200, { 'Content-Type': contentType, 'Content-Length': content.length, 'Cache-Control': 'max-age=2592000, public' });
|
||||
//res.writeHead(200, { 'Content-Type': contentType, 'Content-Length': content.length, 'Cache-Control': 'max-age=2592000, public' });
|
||||
res.writeHead(200);
|
||||
res.end(content, 'utf-8');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user