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' | |
import { fortunes } from '../../data/fortunes.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
// Local imports | |
import { | |
client, | |
q, | |
} from './fauna.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
Query( | |
Lambda( | |
["index"], | |
Get( | |
Select( | |
["data", Var("index")], | |
Paginate(Match(Index("fortuneRefs")), { size: 100000 }) | |
) | |
) | |
) |
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
Query( | |
Lambda( | |
["index"], | |
Let( | |
{ | |
ref: Select( | |
["data", 0], | |
Paginate(Documents(Collection("Fortunes")), { size: 1 }) | |
) | |
}, |
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
Query(Lambda( | |
[], | |
Count( | |
Documents( | |
Collection("Fortunes") | |
) | |
) | |
)) |
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' |
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
// 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: '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
// Module imports | |
import { SlashCommandBuilder } from '@discordjs/builders' | |
export class Command { | |
/****************************************************************************\ | |
* Instance properties |