rm: rip channel

This commit is contained in:
Saahil 2025-03-16 17:22:04 -04:00
parent 16c95ea6dd
commit e35c44ea98
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6
2 changed files with 1 additions and 59 deletions

1
.gitignore vendored
View file

@ -149,3 +149,4 @@ s.csv
slack-users*
assignments.json
memdb.json
src/commands/uttered-oyster-ledge-lumber-velvet-using-coffee-injury-inline-ahead-dwelt-elope.ts

View file

@ -1,59 +0,0 @@
//@ts-nocheck
import { App } from "@slack/bolt";
import { Command, onlyForMe } from "../modules/BaseCommand";
import { banned_users } from "./joinchannel";
import { ModifiedApp } from "../modules/slackapp";
export default class UserJoinSlackEvent implements Command {
name: string;
description: string;
is_event?: boolean;
constructor() {
this.name = `team_join`;
this.description = `User joins slack `;
this.is_event = true;
}
run(app: ModifiedApp) {
// app.command()
app.event(this.name, async ({ event, say, body }) => {
console.debug(event, "#userjoinslack");
//@ts-ignore
app.client.chat.postMessage({
blocks: [
{
type: "section",
text: {
type: "mrkdwn",
text: `${event.user.name} (${event.user.real_name}) (<@${event.user.id}>) just joined the slack!`,
},
accessory: {
type: "image",
image_url:
event.user.profile.image_192 || event.user.profile.image_48,
alt_text: "Avatar of " + event.user.name,
},
},
// {
// type: "divider",
// },
// {
// type: "actions",
// elements: [
// {
// type: "button",
// text: {
// type: "plain_text",
// text: "Steam User Link",
// emoji: true,
// },
// value: "steam_user_link",
// url: player.profileurl,
// },
// ],
// },
],
channel: "C08HTF94XV2",
});
});
}
}