Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
#!/bin/bash
#This Source Code Form is subject to the terms of the Mozilla
#Public License, v. 2.0. If a copy of the MPL was not distributed
#with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
check_py_ver(){
if [ "$1" ]; then
if [ -f "$1" ]; then
PYVER=$($1 --version 2>&1)
PYV=$(echo $PYVER | sed 's/.* \([0-9]\).\([0-9]*\).*/\1\2/')
class Logger{
constructor(logg){
this.fs = require("node:fs")
if(this.fs.existsSync(logg)){
this.logg = str
} else {
console.log("File not found...")
console.log("Creaing file...")
this.fs.writeFile(logg, '', (err)=>{
if(err){
@Rosy581
Rosy581 / index.js
Last active January 24, 2024 01:11
require("dotenv").config()
const admin = require("firebase-admin");
const serviceAccount = require("../ServiceAccountKey");
const pull = require("../script");
const {
Client,
IntentsBitField,
Presence,
Message
} = require('discord.js')