Skip to content

Les-Laboratoires/lab-tools

Repository files navigation

Bot avatar

lab-tools

Made with bot.ts by ghom
CLI version: 9.0.7
Bot.ts version: v9.0.0-Nirbose
Licence: ISC

Description

Bot de gestion des Laboratoires, écrit en TypeScript avec le framework bot.ts.
This bot is private and cannot be invited in other servers.

Specifications

You can find the documentation of bot.ts here.
Below you will find the specifications for lab-tools.

Configuration file

import { Config } from "#core/config"
import { Emotes } from "#namespaces/emotes"
import { z } from "zod"

export const config = new Config({
  ignoreBots: true,
  openSource: true,
  permissions: [],
  envSchema: z.object({
    OPENAI_API_KEY: z.string(),
  }),
  async getPrefix(message) {
    return import("#namespaces/tools").then((app) => app.prefix(message.guild))
  },
  client: {
    intents: [
      "Guilds",
      "GuildMembers",
      "GuildModeration",
      "GuildEmojisAndStickers",
      "GuildIntegrations",
      "GuildWebhooks",
      "GuildInvites",
      "GuildVoiceStates",
      "GuildPresences",
      "GuildMessages",
      "GuildMessageTyping",
      "GuildMessageReactions",
      "DirectMessages",
      "DirectMessageTyping",
      "DirectMessageReactions",
      "MessageContent",
    ],
  },
  paginatorEmojis: {
    start: Emotes.Left,
    previous: Emotes.Minus,
    next: Emotes.Plus,
    end: Emotes.Right,
  },
  systemEmojis: {
    success: Emotes.CheckMark,
    error: Emotes.Cross,
    loading: Emotes.Loading,
  },
})

export default config.options

Cron jobs

  • active - Refresh the active member list every 12 hours
  • money - Give money to users hourly
  • remind - Check reminders every minute
  • tracker - Update the guild tracker every 5 minutes

Commands

Slash commands

  • /buy - Use your coins to buy something
  • /docs - Send doc links for the provided tags
  • /help - Show slash command details or list all slash commands
  • /hint - Try to help the author of the thread by generating a hint
  • /ping - Get the bot ping
  • /profile - View your profile
  • /purge - Purge messages in a channel
  • /remind - Set a reminder for yourself
  • /title - Generate a title for the thread from its content

Textual commands

  • active - Update the active list
  • autoRole - Manage the auto roles
  • backup - Manage database backups
  • ban - Ban a user from all labs
  • config - Display guild configs
  • database - Run SQL query on database
  • deploy - Deploy Lab Tool
  • elders - Fetch the new elders of the server
  • eval - JS code evaluator
  • fake - Fake an user message
  • fetch - Fetch all messages from a channel
  • format - Format the given code
  • help - Help menu
  • info - Get information about bot
  • invite - Generate an invitation link
  • labs - Get a lab invite link
  • leaderboard - Show all leaderboards
  • moveto - Move a conversation to another channel
  • point - Check your points
  • prefix - Edit or show the bot prefix
  • rating - Rate a user or a bot
  • reply - The reply command
  • restart - Restart Lab Tool
  • terminal - Run shell command from Discord
  • todo - Manage todo tasks
  • turn - Turn on/off command handling

Buttons

Listeners

Activity

Automod

Button

Clean

Command

Cron

  • ready - Launch all cron jobs

Helping

Log

Pagination

Reply

Restart

  • ready - Send restart messages

Slash

Tracker

Traffic

Database

Using pg@^8.13.0 as database.
Below you will find a list of all the tables used by lab-tools.

  • active - Active users in a guild
  • autoRole - Auto roles in a guild
  • guild - Guild settings
  • helping - Table of helping
  • labs - Laboratory list
  • message - All messages sent by users in a guild
  • point - Point reward logs
  • note - Rating of a user by another user
  • remind - Table of remind
  • reply - Stores the automatic replies
  • restart - Restart message for the deploy command
  • todo - To-do list for users
  • user - User data

Information

This readme.md is dynamic, it will update itself with the latest information.
If you see a mistake, please report it and an update will be made as soon as possible.

  • Used by: 12 Discord guilds
  • Last update date: 3/5/2025

About

The official bot of Les Laboratoires

Resources

Stars

Watchers

Forks

Sponsor this project