Convert Figma logo to code with AI

lmk123 logooh-my-wechat

微信小助手的安装 / 更新工具。

2,795
383
2,795
8

Top Related Projects

19,998

Conversational RPA SDK for Chatbot Makers. Join our Discord: https://discord.gg/7q8NBZbQzt

25,429

A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。

13,948

微信机器人 / 可能是最优雅的微信个人号 API ✨✨

Mac微信功能拓展/微信插件/微信小助手(A plugin for Mac WeChat)

微信小助手

Quick Overview

Oh My WeChat is a command-line tool designed to simplify the process of installing and managing WeChat plugins on macOS. It automates the installation, updating, and removal of popular WeChat enhancements like MustangYM/WeChatExtension-ForMac, making it easier for users to customize their WeChat experience.

Pros

  • Simplifies the installation and management of WeChat plugins
  • Supports automatic updates for both WeChat and installed plugins
  • Provides a user-friendly command-line interface
  • Allows easy removal of plugins and restoration of the original WeChat app

Cons

  • Limited to macOS users only
  • Requires some familiarity with terminal commands
  • May not support all available WeChat plugins
  • Could potentially conflict with future WeChat updates

Getting Started

To install Oh My WeChat, open Terminal and run the following command:

curl -o- -L https://raw.githubusercontent.com/lmk123/oh-my-wechat/master/install.sh | bash -s

After installation, you can use the following commands:

# Install or update WeChat plugin
omw

# Uninstall WeChat plugin
omw -u

# Check for updates
omw -c

For more detailed usage instructions, refer to the project's README on GitHub.

Competitor Comparisons

19,998

Conversational RPA SDK for Chatbot Makers. Join our Discord: https://discord.gg/7q8NBZbQzt

Pros of Wechaty

  • Cross-platform support (Node.js, Python, Go, Java, etc.)
  • More comprehensive API for bot development
  • Active community and regular updates

Cons of Wechaty

  • Steeper learning curve for beginners
  • Requires more setup and configuration
  • May be overkill for simple WeChat automation tasks

Code Comparison

Oh-My-WeChat (JavaScript):

const { WechatyBuilder } = require('wechaty')

const bot = WechatyBuilder.build()
bot.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}`))
bot.on('login', user => console.log(`User ${user} logged in`))
bot.start()

Wechaty (JavaScript):

const { Wechaty } = require('wechaty')

const bot = new Wechaty()
bot.on('scan', (qrcode, status) => console.log(`Scan QR Code to login: ${status}`))
bot.on('login', user => console.log(`User ${user} logged in`))
bot.start()

While the code snippets look similar, Wechaty offers more advanced features and flexibility for complex bot development. Oh-My-WeChat focuses on simplifying WeChat management and automation, making it more suitable for basic tasks and less experienced users. Wechaty provides a more robust framework for building sophisticated WeChat bots across multiple programming languages.

25,429

A complete and graceful API for Wechat. 微信个人号接口、微信机器人及命令行微信,三十行即可自定义个人号机器人。

Pros of ItChat

  • Written in Python, making it more accessible for Python developers
  • Provides a more comprehensive API for interacting with WeChat
  • Supports both personal and official accounts

Cons of ItChat

  • Less focused on automation and scripting compared to Oh My WeChat
  • May require more setup and configuration for basic tasks
  • Not specifically designed for macOS, unlike Oh My WeChat

Code Comparison

ItChat:

import itchat

@itchat.msg_register(itchat.content.TEXT)
def text_reply(msg):
    return msg.text

itchat.auto_login()
itchat.run()

Oh My WeChat:

omw -n # Update to the latest version of WeChat
omw -k # Keep WeChat running in the background

Oh My WeChat is primarily a command-line tool for managing WeChat on macOS, while ItChat is a Python library for interacting with WeChat's API. The code examples reflect this difference, with ItChat showing how to set up a simple message handler in Python, and Oh My WeChat demonstrating command-line usage for updating and running WeChat.

13,948

微信机器人 / 可能是最优雅的微信个人号 API ✨✨

Pros of wxpy

  • More comprehensive API for interacting with WeChat
  • Better documentation and examples for developers
  • Supports both personal and official accounts

Cons of wxpy

  • Less focus on automating WeChat updates
  • May require more coding knowledge to implement features
  • Not specifically designed for macOS users

Code Comparison

wxpy:

from wxpy import *
bot = Bot()
my_friend = bot.friends().search('John')[0]
my_friend.send('Hello, World!')

oh-my-wechat:

omw update
omw open
omw close

Key Differences

oh-my-wechat is primarily focused on automating WeChat updates and management on macOS, while wxpy is a more comprehensive Python library for interacting with WeChat's API. oh-my-wechat provides simple command-line tools for updating and managing WeChat, whereas wxpy offers more flexibility for developers to create custom WeChat bots and automation scripts.

oh-my-wechat is better suited for macOS users who want a simple solution to keep WeChat updated and manage basic functions. wxpy, on the other hand, is ideal for developers who need to create more complex WeChat integrations or bots, regardless of the operating system.

Mac微信功能拓展/微信插件/微信小助手(A plugin for Mac WeChat)

Pros of WeChatExtension-ForMac

  • More comprehensive feature set, including message recall prevention, auto-reply, and multi-account support
  • Active development with frequent updates and bug fixes
  • Larger community and more extensive documentation

Cons of WeChatExtension-ForMac

  • More complex installation process, requiring manual steps
  • Potentially higher risk of detection by WeChat due to deeper system integration
  • Larger codebase, which may lead to more potential bugs or conflicts

Code Comparison

WeChatExtension-ForMac:

- (void)hook_onRevokeMsg:(id)msg {
    if ([self.class shouldPreventRevoke]) {
        [self handleRevokedMsg:msg];
    } else {
        [self hook_onRevokeMsg:msg];
    }
}

oh-my-wechat:

function preventMessageRevoke(message) {
  if (config.preventRevoke) {
    return;
  }
  // Original revoke logic
}

The code snippets show different approaches to message revoke prevention. WeChatExtension-ForMac uses Objective-C and method swizzling, while oh-my-wechat employs JavaScript and likely injects into the WeChat web version.

微信小助手

Pros of WeChatPlugin-MacOS

  • More comprehensive feature set, including message recall prevention, auto-reply, and message forwarding
  • Directly modifies WeChat application, providing deeper integration and functionality
  • Larger community with more frequent updates and contributions

Cons of WeChatPlugin-MacOS

  • More complex installation process, requiring manual steps and potential security risks
  • May break with WeChat updates, requiring frequent maintenance
  • Higher chance of being detected by WeChat, potentially leading to account restrictions

Code Comparison

oh-my-wechat:

#!/bin/bash
curl -o- -L https://raw.githubusercontent.com/lmk123/oh-my-wechat/master/install.sh | bash -s

WeChatPlugin-MacOS:

@implementation WeChatPlugin

- (void)hook {
    // Complex hooking logic
}

@end

oh-my-wechat focuses on simplifying the installation process with a one-line command, while WeChatPlugin-MacOS involves more intricate code for modifying WeChat's behavior directly.

WeChatPlugin-MacOS offers more advanced features and deeper integration, but comes with increased complexity and potential risks. oh-my-wechat provides a simpler, safer approach with fewer features. The choice depends on the user's needs and technical expertise.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

给自己的另一款软件打一个广告:划词翻译,跨平台 & 一站式划词、截图、网页全文、音视频翻译扩展,查看简介:https://hcfy.app/docs/guides/summary/


由于微信小助手已停止继续维护,所以本项目也不再继续维护了,详细说明见微信小助手永久停更的说明

Oh My WeChat

这是为 MustangYM/WeChatExtension-ForMac(后面称呼为“小助手”)开发的安装/更新工具。

安装 Oh My WeChat

在终端中运行 curl -o- -L https://omw.limingkai.cn/install.sh | bash -s 即可。

安装之后,你可以运行 omw update 命令更新 Oh My WeChat。

使用 Oh My WeChat

Oh My WeChat 支持下面几条命令:

omw

这条命令会自动安装小助手,当小助手提示你有新版本时也可以运行这个命令更新小助手。

运行 omw 会执行以下操作:

  1. 检查小助手有没有新版本,有则从 GitHub 仓库下载最新版本安装包并安装
  2. 检测微信有没有安装小助手,没有则安装
  3. 最后,打开微信

你还可以添加 -n 参数,以跳过检查更新的步骤,优先使用下载过的安装包安装小助手。

如果从 GitHub 仓库上下载安装包很慢,你可以使用 omw load 命令(后面有介绍)导入安装包,或者尝试用自己的梯子来下载:

# 这里假设你的梯子在你电脑的 1087 端口开了个 HTTP 代理
$ export http_proxy=http://127.0.0.1:1087
$ omw

omw load

这条命令可以直接将小助手的安装包导入到 Oh My WeChat 里。

你可以用浏览器打开小助手的最新版本发布页,然后点击 Source code (zip) 将安装包下载下来。假设现在最新版本是 v1.8.7,那么此时你的下载文件夹内会有一个 WeChatExtension-ForMac-1.8.7.zip 安装包,接下来,你可以在终端内运行下面这条命令导入安装包:

$ cd ~/Downloads && omw load 1.8.7

如果你下载的安装包不在下载文件夹中,而且你不知道命令怎么写,那么你可以先将安装包移动到下载文件夹中,然后运行上面的命令。

omw open 和 omw close

微信在自动更新后会删除小助手,为了避免这一情况,你可以运行 omw open 开启开机自动安装小助手的功能(即在开机后自动运行一次 omw -n)。

运行 omw close 可以关闭开机自启动。

注意:由于刚开机时可能没有网络,且下载小助手的过程可能会很漫长,所以建议提前运行 omw 通过网络下载小助手、或者使用 omw load 命令导入小助手的安装包,这样开机后会直接用本地安装包安装小助手,无需从网络下载。

omw un

卸载 Oh My WeChat 或小助手。你可以选择其中一个卸载,或者两个都卸载。

omw update

更新 Oh My WeChat 自身。

运行截图

未安装小助手时运行 omw

未安装小助手时运行 omw

未安装小助手且下载过安装包时运行 omw -n

未安装小助手且下载过安装包时运行 omw -n

运行 omw un

运行 omw un

许可

MIT