mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 19:45:11 +00:00
rm: rip channel
This commit is contained in:
parent
16c95ea6dd
commit
e35c44ea98
2 changed files with 1 additions and 59 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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
|
||||
|
|
@ -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",
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue