Skip to content

Instantly share code, notes, and snippets.

@TecEash1
TecEash1 / AskModal.js
Last active February 25, 2024 04:33
Free Discord Bot AI. Powered by GPT-3.5.
/**
* @file BotNameAI Ask Modal.
* @author TechyGiraffe999
* @license Apache License 2.0
*/
/**
* @type {import("../../../../typings").ModalInteractionCommand}
*/
const fs = require('fs').promises;
@BRAVO68WEB
BRAVO68WEB / index.js
Created November 5, 2019 15:27
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");