|
@@ -40,7 +40,7 @@ function sub(chat, args, reply, lock, lockfile) {
|
|
|
return reply('请先添加机器人为好友。');
|
|
|
}
|
|
|
if (args.length === 0) {
|
|
|
- return reply('找不到要订阅的链接。');
|
|
|
+ return reply('找不到要订阅 Instagram 故事的链接。');
|
|
|
}
|
|
|
const matched = twitter_1.parseLink(args[0]);
|
|
|
if (!matched) {
|
|
@@ -67,7 +67,7 @@ https://www.instagram.com/tomoyo_kurosawa_/`);
|
|
|
const tryFindSub = (userName) => {
|
|
|
const [realLink, index] = linkFinder(userName, chat, lock);
|
|
|
if (index > -1) {
|
|
|
- reply('此聊天已订阅此链接。');
|
|
|
+ reply('此聊天已订阅此链接的 Instagram 故事。');
|
|
|
return true;
|
|
|
}
|
|
|
if (realLink) {
|
|
@@ -96,7 +96,7 @@ function unsub(chat, args, reply, lock, lockfile) {
|
|
|
return reply('请先添加机器人为好友。');
|
|
|
}
|
|
|
if (args.length === 0) {
|
|
|
- return reply('找不到要退订推特故事的链接。');
|
|
|
+ return reply('找不到要退订 Instagram 故事的链接。');
|
|
|
}
|
|
|
const match = (_a = twitter_1.parseLink(args[0])) === null || _a === void 0 ? void 0 : _a.userName;
|
|
|
if (!match) {
|
|
@@ -104,7 +104,7 @@ function unsub(chat, args, reply, lock, lockfile) {
|
|
|
}
|
|
|
const [link, index] = linkFinder(match, chat, lock);
|
|
|
if (index === -1)
|
|
|
- return list(chat, args, msg => reply('您没有订阅此链接的推特故事。\n' + msg), lock);
|
|
|
+ return list(chat, args, msg => reply('您没有订阅此链接的 Instagram 故事。\n' + msg), lock);
|
|
|
else {
|
|
|
lock.threads[link].subscribers.splice(index, 1);
|
|
|
fs.writeFileSync(path.resolve(lockfile), JSON.stringify(lock));
|
|
@@ -122,13 +122,13 @@ function list(chat, _, reply, lock) {
|
|
|
if (lock.threads[key].subscribers.find(({ chatID, chatType }) => chat.chatID === chatID && chat.chatType === chatType))
|
|
|
links.push(`${key} ${datetime_1.relativeDate(lock.threads[key].updatedAt)}`);
|
|
|
});
|
|
|
- return reply('此聊天中订阅的 Instagram 动态链接:\n' + links.join('\n'));
|
|
|
+ return reply('此聊天中订阅的 Instagram 故事动态链接:\n' + links.join('\n'));
|
|
|
}
|
|
|
exports.list = list;
|
|
|
function view(chat, args, reply) {
|
|
|
var _a;
|
|
|
if (args.length === 0) {
|
|
|
- return reply('找不到要查看的链接。');
|
|
|
+ return reply('找不到要查看 Instagram 故事的链接。');
|
|
|
}
|
|
|
const match = (_a = twitter_1.parseLink(args[0])) === null || _a === void 0 ? void 0 : _a.userName;
|
|
|
if (!match) {
|