fca-priyansh 10.2.0 → 10.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ var ctx = c.getContext("2d");
3
3
  var mask;
4
4
 
5
5
  var pointCount = 500;
6
- var str = "Horizon";
6
+ var str = "Priyansh";
7
7
  var fontStr = "bold 100pt Helvetica Neue, Helvetica, Arial, sans-serif";
8
8
 
9
9
  ctx.font = fontStr;
package/index.js CHANGED
@@ -194,63 +194,63 @@ var Boolean_Option = ['online','selfListen','listenEvents','updatePresence','for
194
194
 
195
195
  /!-[ Set And Check Template HTML ]-!/
196
196
 
197
- var css = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'style.css'));
198
- var js = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'script.js'));
199
-
200
- /!-[ Function Generate HTML Template ]-!/
201
-
202
- /**
203
- * It returns a string of HTML code.
204
- * @param UserName - The username of the user
205
- * @param Type - The type of user, either "Free" or "Premium"
206
- * @param link - The link to the music you want to play
207
- * @returns A HTML file
208
- */
209
-
210
- function ClassicHTML(UserName,Type,link) {
211
- return `<!DOCTYPE html>
212
- <html lang="en" >
213
- <head>
214
- <meta charset="UTF-8">
215
- <title>Horizon</title>
216
- <link rel="stylesheet" href="./style.css">
217
- </head>
218
- <body>
219
- <center>
220
- <marquee><b>waiting for u :d</b></marquee>
221
- <h2>Horizon User Infomation</h2>
222
- <h3>UserName: ${UserName} | Type: ${Type}</h3>
223
- <canvas id="myCanvas"></canvas>
224
- <script src="./script.js"></script>
225
- <footer class="footer">
226
- <div id="music">
227
- <audio autoplay="false" controls="true" loop="true" src="${link}" __idm_id__="5070849">Your browser does not support the audio element.</audio>
228
- <br><b>Session ID:</b> ${global.Fca.Require.Security.create().uuid}<br>
229
- <br>Thanks For Using <b>fca-priyansh</b> - From <b>Priyansh</b> <3<br>
230
- </div>
231
- </footer>
232
- </div>
233
- </center>
234
- </html>
235
- </body>`
236
- //lazy to change
237
- }
238
-
239
- /!-[ Stating Http Infomation ]-!/
240
-
241
- express.set('DFP', (process.env.PORT || process.env.port || 1932));
242
- express.use(function(req, res, next) {
243
- switch (req.url.split('?')[0]) {
244
- case '/script.js': {
245
- res.writeHead(200, { 'Content-Type': 'text/javascript' });
246
- res.write(js);
247
- break;
248
- }
249
- case '/style.css': {
250
- res.writeHead(200, { 'Content-Type': 'text/css' });
251
- res.write(css);
252
- break;
253
- }
197
+ // var css = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'style.css'));
198
+ // var js = readFileSync(join(__dirname, 'Extra', 'Html', 'Classic', 'script.js'));
199
+
200
+ // /!-[ Function Generate HTML Template ]-!/
201
+
202
+ // /**
203
+ // * It returns a string of HTML code.
204
+ // * @param UserName - The username of the user
205
+ // * @param Type - The type of user, either "Free" or "Premium"
206
+ // * @param link - The link to the music you want to play
207
+ // * @returns A HTML file
208
+ // */
209
+
210
+ // function ClassicHTML(UserName,Type,link) {
211
+ // return `<!DOCTYPE html>
212
+ // <html lang="en" >
213
+ // <head>
214
+ // <meta charset="UTF-8">
215
+ // <title>Horizon</title>
216
+ // <link rel="stylesheet" href="./style.css">
217
+ // </head>
218
+ // <body>
219
+ // <center>
220
+ // <marquee><b>waiting for u :d</b></marquee>
221
+ // <h2>Horizon User Infomation</h2>
222
+ // <h3>UserName: ${UserName} | Type: ${Type}</h3>
223
+ // <canvas id="myCanvas"></canvas>
224
+ // <script src="./script.js"></script>
225
+ // <footer class="footer">
226
+ // <div id="music">
227
+ // <audio autoplay="false" controls="true" loop="true" src="${link}" __idm_id__="5070849">Your browser does not support the audio element.</audio>
228
+ // <br><b>Session ID:</b> ${global.Fca.Require.Security.create().uuid}<br>
229
+ // <br>Thanks For Using <b>fca-priyansh</b> - From <b>Priyansh</b> <3<br>
230
+ // </div>
231
+ // </footer>
232
+ // </div>
233
+ // </center>
234
+ // </html>
235
+ // </body>`
236
+ // //lazy to change
237
+ // }
238
+
239
+ // /!-[ Stating Http Infomation ]-!/
240
+
241
+ // express.set('DFP', (process.env.PORT || process.env.port || 1932));
242
+ // express.use(function(req, res, next) {
243
+ // switch (req.url.split('?')[0]) {
244
+ // case '/script.js': {
245
+ // res.writeHead(200, { 'Content-Type': 'text/javascript' });
246
+ // res.write(js);
247
+ // break;
248
+ // }
249
+ // case '/style.css': {
250
+ // res.writeHead(200, { 'Content-Type': 'text/css' });
251
+ // res.write(css);
252
+ // break;
253
+ // }
254
254
  // case '/History': {
255
255
  // if (req.query.PassWord == process.env.REPL_OWNER) {
256
256
  // res.writeHead(200, { 'Content-Type': 'application/json charset=utf-8' });
@@ -263,15 +263,15 @@ express.use(function(req, res, next) {
263
263
  // });
264
264
  // break;
265
265
  // }
266
- default: {
267
- res.writeHead(200, "OK", { "Content-Type": "text/html" });
268
- res.write(ClassicHTML(global.Fca.Require.Priyansh.HTML.UserName, global.Fca.Data.PremText.includes("Premium") ? "Premium": "Free", global.Fca.Require.Priyansh.HTML.MusicLink));
269
- }
270
- }
271
- res.end();
272
- })
273
-
274
- global.Fca.Require.Web = express;
266
+ // default: {
267
+ // res.writeHead(200, "OK", { "Content-Type": "text/html" });
268
+ // res.write(ClassicHTML(global.Fca.Require.Priyansh.HTML.UserName, global.Fca.Data.PremText.includes("Premium") ? "Premium": "Free", global.Fca.Require.Priyansh.HTML.MusicLink));
269
+ // }
270
+ // }
271
+ // res.end();
272
+ // })
273
+
274
+ // global.Fca.Require.Web = express;
275
275
 
276
276
  /!-[ Function setOptions ]-!/
277
277
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fca-priyansh",
3
- "version": "10.2.0",
3
+ "version": "10.2.2",
4
4
  "description": "Facebook-chat-api made by Priyansh rajput",
5
5
  "main": "index.js",
6
6
  "scripts": {