Skip to content

Commit

Permalink
Basic commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JTDMedia committed Nov 25, 2024
2 parents 1e836bc + 443674a commit 486f232
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ GPT=true

# Radio stream url:
RADIO=

# Bot status
STATUS=JTDMedia/JTDBot Github.com
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi:JTDMedia
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ JTDBot is a versatile and lightweight Discord bot that comes with a variety of f
- **Custom Commands** ⚙️
- **Lightweight and Fast**

## 📣 Don't want to host?
You can also use our public bot! [You can click here to invite](https://discord.com/oauth2/authorize?client_id=1310295264170348644&permissions=8&integration_type=0&scope=bot+applications.commands)

## 💻 Installation

### 1. Clone the repository:
Expand Down
3 changes: 2 additions & 1 deletion bot.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const fs = require('node:fs');
const path = require('node:path');
const { Client, Collection, Events, GatewayIntentBits, REST, Routes } = require('discord.js');
const { Client, Collection, Events, GatewayIntentBits, REST, Routes, ActivityType } = require('discord.js');
require('dotenv').config();

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
Expand All @@ -23,6 +23,7 @@ for (const file of commandFiles) {

client.once(Events.ClientReady, readyClient => {
console.log(`Ready! Logged in as ${readyClient.user.tag}`);
client.user.setActivity(process.env.STATUS, { type: ActivityType.Watching });
});

client.on(Events.InteractionCreate, async interaction => {
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"name": "jtdbot",
<<<<<<< HEAD
"version": "1.0.2",
=======
"version": "1.0.1",
>>>>>>> 443674ac6ac45e8c42572bb25bff422e1fde0e73
"description": "JTDBot - A Powerful, Lightweight Discord Bot",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 486f232

Please sign in to comment.