This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const strings = [ | |
'Fruit', // #0002ee | |
'Blorp', // #0000a2 | |
'Fig', // #0002ee | |
'Bridge', // #0000a2 | |
'Macintosh', // #0006f3 | |
'Apple', // #00000f | |
'Speakers', // #000a65 | |
'Stream', // #000a65 | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generates a set of flexible CSS Custom Properties | |
@mixin generateHSLCustomProperties($propertyName, $hue, $saturation, $lightness) { | |
// $safeName is necessary because $name can be a color literal (like 'red'). | |
// Sass doesn't like that, so we convert it to a string. | |
$safeName: '' + $propertyName; | |
--#{$safeName}-hue: calc(#{$hue} + var(--hue-shift)); | |
--#{$safeName}-saturation: #{$saturation}; | |
--#{$safeName}-lightness: #{$lightness}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let hasShownLoggingDisabledNotification = true | |
let logging = true | |
// export functions: a-z | |
export function getLogging() { | |
return logging | |
} | |
export function log(message, channel, user) { | |
const logConfig = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { STELLAR_CLASSES } from 'helpers/stellarClasses.js' | |
// The density at a point must be greater than this value for a star to be | |
// formed. | |
const DENSITY_THRESHHOLD_FOR_NEW_STAR = 0.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module imports | |
import 'dotenv/config' | |
import { | |
Client, | |
Intents, | |
} from 'discord.js' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module imports | |
import { SlashCommandBuilder } from '@discordjs/builders' | |
export class Command { | |
/****************************************************************************\ | |
* Instance properties |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { Command } from '../structures/Command.js' | |
export default new Command({ | |
// Meta | |
name: 'ping', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { capitalise } from '../helpers/capitalise.js' | |
export class Command { | |
/****************************************************************************\ | |
* Public methods |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Local imports | |
import { Command } from '../structures/Command.js' | |
export default new Command({ | |
// Meta | |
name: '8ball', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module imports | |
import { MessageEmbed } from 'discord.js' | |
// Local imports | |
import { Command } from '../structures/Command.js' |