Skip to content

Instantly share code, notes, and snippets.

View DarrenOfficial's full-sized avatar
🚀
BrainFuck

Darren Nathanael DarrenOfficial

🚀
BrainFuck
View GitHub Profile
@DarrenOfficial
DarrenOfficial / index.html
Created January 7, 2021 14:35
Minecraft server status widget
<div class="card"> <div class="icon"><img src="https://external-preview.redd.it/XDI8u1B1-Wwam7qjT_TqruIMcqXsMMBSUfJRjxfpqvg.png?format=pjpg&auto=webp&s=bafc5f111a0ddf442ec5c9f8e36f2181061d0711" id="favicon"></div><div class="header">
<div class="image"> <img src="https://pbs.twimg.com/media/EDT3gnrWkAEN4WA.jpg" alt="" /> </div>
<h2>RIGE SMP</h2>
</div>
<div id="rest">Loading ...</div>
</div>
@DarrenOfficial
DarrenOfficial / poker.js
Created July 27, 2021 01:33
DiscordJS Poker
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "poker",
description: "start the gambling game baby! Discord Poker Night.",
usage: "",
permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
const { MessageEmbed } = require("discord.js");
require("moment-duration-format");
const cpuStat = require("cpu-stat");
const moment = require("moment");
module.exports = {
name: "stats",
description: "Get information about the bot",
usage: "",
permissions: {
@DarrenOfficial
DarrenOfficial / reply.js
Last active July 29, 2021 02:36
reply when pinged example
client.on('message', message => { //this event is fired, whenever the bot sees a new message
if (message.isMemberMentioned(client.user)) { //we check, whether the bot is mentioned, client.user returns the user that the client is logged in as
const replies = new Discord.MessageEmbed()
.setColor('#0099ff')
.setTitle('Nathans bot')
.setURL('https://cynathans.com')
.setAuthor('Some name', 'https://i.imgur.com/wSTFkRM.png', 'https://discord.js.org')
.setDescription('Some description here')
.setThumbnail('https://i.imgur.com/wSTFkRM.png')
.addFields(
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "chess",
description: "Play chess with your friends! or bots.",
usage: "",
permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
@DarrenOfficial
DarrenOfficial / ProgressBar.js
Created October 15, 2021 09:28
big circle yes
/**
* Create a text progress bar
* @param {Number} value - The value to fill the bar
* @param {Number} maxValue - The max value of the bar
* @param {Number} size - The bar size (in letters)
* @return {{Bar: string, percentageText: string}} - The bar
*/
module.exports = (value, maxValue, size) => {
const percentage = value / maxValue; // Calculate the percentage of the bar
const progress = Math.round(size * percentage); // Calculate the number of square caracters to fill the progress side.
@DarrenOfficial
DarrenOfficial / start.sh
Created October 17, 2021 08:59
do install nodejs 16
echo Downloading NodeJS 16
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
npm i
npm run start
@DarrenOfficial
DarrenOfficial / start.sh
Created October 19, 2021 04:49
NodeJS 16 Replit sh
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
rm -rf node_modules/
npm i
npm rebuild
npm run start
@DarrenOfficial
DarrenOfficial / .replit
Created October 19, 2021 04:54
replit file for start.sh
run = "bash start.sh"
language = "bash"
@DarrenOfficial
DarrenOfficial / discord-ids.md
Last active January 15, 2022 19:06
Discord applications game id

List of discord game / applications id.

  youtube: '880218394199220334'
  youtubedev: '880218832743055411'
  poker: '755827207812677713'
  betrayal: '773336526917861400'
  fishing: '814288819477020702'
  chess: '832012774040141894'
  chessdev: '832012586023256104' 
 lettertile: '879863686565621790'