SnapchatWebAutomation
Allows you to automate tasks on Snapchat Web
Install / Use
/learn @NotDSF/SnapchatWebAutomationREADME
Snapchat Web Automation
Allows you to automate tasks on Snapchat Web
How to authenticate
Once calling the function Snapchat.Login we will boot up all the essentials for the client, if you aren't authenticated we will wait for you to log in to your snapchat account before continuing execution of the program. If authentication exists you should still call this function as it handles events etc
To remove your data delete the
user_datafolder
API
Get Friend Data
This contains the exact data returned from the snapchat API on friend information.
Snapchat.friends <array>
Message Event
Event fires every time a message is sent within the current channel.
Snapchat.events.on("message")
(async) Snapchat.Login
This function initializes and loads up snapchat web, if you already authenticated it won't go through the authentication process.
await Snapchat.Login(<void>) : void
(async) Snapchat.CloseChat
This function closes the current chat active on the browser.
await Snapchat.CloseChat(<void>) : void
(async) Snapchat.OpenChat
This function opens a chat within the browser.
await Snapchat.OpenChat(<string name>) : void
(async) Snapchat.GetChats
This function returns an array of chat names on your account.
await Snapchat.GetChats(<void>) : [string...]
(async) Snapchat.GetMessages
This function returns an array of all messages within the current channel.
await Snapchat.GetMessages(<void>): [{ author: string, content: string }...]
(async) Snapchat.SendMessage
This function sends a message in the current channel.
await Snapchat.SendMessage(<string message>) : void
Example
const Snapchat = require(".");
(async () => {
const client = await Snapchat.Login();
const chats = await client.GetChats();
await client.OpenChat(chats[0]); // open first chat
// event only fires when a chat is open
client.events.on("message", async (message) => {
console.log(message);
if (message.content === "ping") {
await client.SendMessage("pong!");
}
});
})();
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
