1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 12:21:00 -05:00

Add webhook for something else in mind.

This commit is contained in:
AnxietyisReal 2023-02-09 12:51:59 +11:00
parent 5c3161c39b
commit c16ebd5e16
3 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
import Discord, { Client, GatewayIntentBits, Partials } from 'discord.js';
import Discord, { Client, WebhookClient, GatewayIntentBits, Partials } from 'discord.js';
import fs from 'node:fs';
import timeNames from './timeNames';
import { Punishment, formatTimeOpt, Tokens, Config } from './typings/interfaces';
@ -187,3 +187,6 @@ export default class TClient extends Client {
}
}
}
export class WClient extends WebhookClient {tokens: Tokens; constructor(){super({url: tokens.webhook_url})}}
// hi tae, ik you went to look for secret hello msgs in here too.

View File

@ -1,9 +1,9 @@
import Discord,{SlashCommandBuilder} from 'discord.js';
import { Octokit } from '@octokit/rest';
import {Octokit} from '@octokit/rest';
import {exec} from 'node:child_process';
import { readFileSync } from 'node:fs';
import {readFileSync} from 'node:fs';
import * as util from 'node:util';
import TClient from 'src/client';
import TClient from '../client';
import path from 'node:path';
const removeUsername = (text: string)=>{
let matchesLeft = true;
@ -117,7 +117,6 @@ export default {
`Name: **${currentActivities[0].name}**`,
`URL: \`${currentActivities[0].url}\``
].join('\n'))
break
}
},
data: new SlashCommandBuilder()

View File

@ -123,6 +123,7 @@ export interface Tokens {
token_beta: string
token_toast: string
token_tae: string
webhook_url: string
}
export interface Config {
embedColor: ColorResolvable,