Skip to content

ImShyMike/slack-selfbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

768287b · · Jul 16, 2026

History

33 Commits
Jul 11, 2026
Jul 11, 2026
Jul 9, 2026
Jul 8, 2026
Jul 16, 2026
Jul 9, 2026
Jul 10, 2026
Jul 10, 2026
Jul 10, 2026
Jul 16, 2026
Jul 9, 2026
Jul 10, 2026
Jul 9, 2026
Jul 16, 2026

Repository files navigation

slack-selfbot

My silly selfbot for Slack that does some rather silly things :P

What does it do?

  • Lets you run selfbot commands by using /me messages
  • Supports these commands:
    • help [command] - show available commands or details for one command
    • ping - check whether the selfbot is alive
    • echo xt> - send a normal message as yourself with mrkdwn support
    • id <@user|#channel|@usergroup>up> - gets the SLack ID from the provided parameter
  • Watches for a couple reaction shortcuts:
    • :i-would-ooc-this-but-i-cant: - DMs you every time someone reacts to a message with it
    • :private: - gives you the name of the private channel

Setup

Slack user token:

  • Go to https://api.slack.com/apps
  • Click "Create New App"
  • Click "From a manifest"
  • Select the workspace you want to install the selfbot in
  • Paste the contents of manifest.json
  • Click "Next" and then "Create"
  • Head over to "Install app" under "Settings"
  • Click "Install to Workspace" and then "Allow"
  • Copy the "User OAuth Token" and paste it into .env as SLACK_XOXP

Slack selfbot cookie:

  • Open the Slack web app in your browser
  • Open the developer tools (usually F12 or right click then Inspect)
  • Go to the "Storage" tab and then "Cookies"
  • Click on "https://app.slack.com" and find the cookie named "d"
  • Copy the value of the cookie and paste it into .env as SLACK_COOKIE

You're done! :D

Usage

Install dependencies:

bun install

Run the selfbot:

bun index.ts

About

silly selfbot with commands

Resources

Stars

0 stars

Watchers

0 watching

Forks