Add fancy activities

This commit is contained in:
Skylar Grant 2023-01-23 20:50:14 -05:00
parent 19fb712941
commit 7822016945
4 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,7 @@
{
"activity": {
"name": "trees grow"
},
"help": {
"info": "This bot will analyze your tree (from the Grow A Tree Bot by Limbo Labs) and compare its growth to other trees displayed on the leaderboard.\n\nThis bot assumes that there is a single </tree:972648557796524032> message and a single </top trees:1051840665362894950> message that everyone uses. If everyone creates their own </tree:972648557796524032> and </top trees:1051840665362894950>, the reference messages will have to be updated every time, or old data will be displayed.",
"setup": "To begin analyzing your Tree, first you must set up the reference messages.\n\n1. Run </setup:1065407649363005561> in the channel(s) that contain your server's tree and leaderboard messages.\n2. Now simply run </compare:1065346941166297128> where you want your analysis to be visible.",

View File

@ -7,7 +7,7 @@ const token = process.env.TOKEN;
const statusChannelId = process.env.statusChannelId;
// Discord.JS
const { Client, GatewayIntentBits, Partials } = require('discord.js');
const { Client, GatewayIntentBits, Partials, ActivityType } = require('discord.js');
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
@ -29,6 +29,7 @@ const isDev = process.env.isDev;
client.once('ready', () => {
fn.collections.slashCommands(client);
console.log('Ready!');
client.user.setActivity({ name: strings.activity.name, type: ActivityType.Watching });
client.channels.fetch(statusChannelId).then(channel => {
channel.send(`${new Date().toISOString()} -- \nStartup Sequence Complete`);
});

View File

@ -247,7 +247,7 @@ const functions = {
if (thisGuildInfo.treeHeight != "") {
thisGuildInfoString += `Tree Height: ${thisGuildInfo.treeHeight}\n`;
}
return `Here if your servers setup info:\n${thisGuildInfoString}`;
return `Here is your servers setup info:\n${thisGuildInfoString}`;
} else {
return "Your guild hasn't been set up yet.";
}

View File

@ -1,6 +1,6 @@
{
"name": "treeanalyzer",
"version": "1.0.4",
"version": "1.0.5",
"description": "Analyze Grow A Tree",
"main": "main.js",
"scripts": {