You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# pmcenter
2
2
3
-
[](https://ci.appveyor.com/project/Elepover/pmcenter)[](https://www.codefactor.io/repository/github/elepover/pmcenter)[](https://t.me/pmcenter_devlog)
3
+
[](https://ci.appveyor.com/project/Elepover/pmcenter)[](https://www.codefactor.io/repository/github/elepover/pmcenter)[](https://t.me/pmcenter_devlog)
4
4
5
5
A telegram bot helping you process private messages.
6
6
@@ -142,6 +142,7 @@ Or, use setup wizard:
142
142
143
143
| Key | Type | User Editable | Description |
144
144
| :---- | :---- | :---- | ----:|
145
+
|`Minify`|`Boolean`| ✓ | To minify pmcenter configurations or not. |
145
146
|`APIKey`|`String`| ✓ | Your Telegram bot's API key. |
146
147
|`OwnerID`|`Long`| ✓ | The owner's Telegram user ID. |
147
148
|`EnableCc`|`Boolean`| ✓ | Decides whether cc feature is enabled or not. |
@@ -176,7 +177,13 @@ Or, use setup wizard:
176
177
|`UpdateChannel`|`String`| ✓ | Choose which update channel you prefer to. |
177
178
|`IgnoreKeyboardInterrupt`|`Boolean`| ✓ | Choose whether pmcenter should ignore Ctrl-C interrupts or not. |
178
179
|`DisableNetCore3Check`|`Boolean`| ✓ | Turn this on to hide .NET Core Runtime version warnings. |
180
+
|`DisableMessageLinkTip`|`Boolean`| ✓ | Turn this on to hide message link tip prompts. |
181
+
|`AnalyzeStartupTime`|`Boolean`| ✓ | Turn this on to show detailed analysis of startup time. |
182
+
|`SkipAPIKeyVerification`|`Boolean`| ✓ | Turn this on to skip API Key verification on startup. |
183
+
|`EnableActions`|`Boolean`| ✓ | Turn this on to enable message actions. |
184
+
|`CheckLangVersionMismatch`|`Boolean`| ✓ | Check language version and send alert on startup. |
179
185
|`Statistics`|`Stats`| ✕ | Statistics data. |
186
+
|`IgnoredLogModules`|`Array`| ✓ | List of ignored log modules. Selected modules will not generate output to console. |
180
187
|`Socks5Proxies`|`Array`| ✓ | List of SOCKS5 proxies. |
181
188
|`BannedKeywords`|`Array`| ✓ | Storage of banned keywords. |
182
189
|`Banned`|`Array`| ✓ | Storage of banned users. |
@@ -199,7 +206,8 @@ Tip: After upgrades, you can send `/saveconf` command to the bot to fix missing
199
206
-**Emojis** are supported, and were used by default.
200
207
- Currently the response of the `/info` command is unchangeable.
201
208
- Familiar with another language? Pull requests are welcome!
202
-
- Please think twice before turning on `EnableMsgLink`, it makes it possible for you to reply to messages that are forwarded anonymously or from channels, however, it will cost more and more of your storage space and memory as the storage grows and makes it slower for pmcenter to process configuration files.
209
+
-~~Please think twice before turning on `EnableMsgLink`, it makes it possible for you to reply to messages that are forwarded anonymously or from channels, however, it will cost more and more of your storage space and memory as the storage grows and makes it slower for pmcenter to process configuration files.~~
210
+
- Now Message Links play an important role in pmcenter's basic functions. Turning it off is NOT recommended.
203
211
204
212
#### Changing File Location
205
213
@@ -246,6 +254,7 @@ You can write a `systemd service` to keep it running, even after the host machin
|`/saveconf`| Owner | Manually save configurations and translations. Useful after upgrades. |
257
+
|`/autosave [off/interval]`| Owner | Enable/Disable autosave. Intervals are in milliseconds (1/1000 of a second). |
249
258
|`/readconf`| Owner | Reload configurations without restarting bot. |
250
259
|`/resetconf`| Owner | Reset configurations. |
251
260
|`/uptime`| Owner | Get system uptime info. |
@@ -301,6 +310,8 @@ pmcenter is planning to move to .NET Core 3.1, see [issue #25](https://github.co
301
310
302
311
Please enable the `EnableMsgLink` option in pmcenter's configurations file. Only messages forwarded when `EnableMsgLink` option is turned on can be replied.
303
312
313
+
You can NOT reply to the messages that were forwarded when `EnableMsgLink` option was disabled since their corresponding message links were missing.
314
+
304
315
For more information, refer to the [configurations](#pmcenter-settings) part.
Copy file name to clipboardExpand all lines: locales/pmcenter_locale_en.json
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
{
2
-
"TargetVersion": "1.9.280.15",
2
+
"TargetVersion": "2.0.2.0",
3
3
"LangCode": "en.imported",
4
4
"LanguageNameInEnglish": "English",
5
5
"LanguageNameInNative": "English",
6
6
"Message_OwnerStart": "😊 *Hi!* I'm your `pmcenter` bot, and I work just for you.\nThis message means that you've set up the bot successfully.\nTo reply to any forwarded messages, just directly reply to them here.\n\nThank you for using the `pmcenter` bot!",
7
7
"Message_UserStartDefault": "📨 *Hi!* To send anything to my owner, just send it here.\n⚠ To be informed: I'll *automatically* ban flooding users.",
8
8
"Message_ReplySuccessful": "✅ Successfully replied to user $1!",
9
9
"Message_ForwardedToOwner": "✅ Your message has been forwarded to my owner!",
10
-
"Message_Help": "❓ `pmcenter` *Bot Help*\n/start - Display welcome message.\n/info - Display the message's info.\n/ban - Restrict the user from contacting you.\n/banid <ID> - Restrict a user from contacting you with his/her ID.\n/pardon - Pardon the user.\n/pardonid <ID> - Pardon a user with his/her ID.\n/ping - Test if the bot is working.\n/switchfw - Pause/Resume message forwarding.\n/switchbw - Enable/Disable keyword banning.\n/switchnf - Enable/Disable notifications.\n/switchlang <URL> - Switch language file.\n/switchlangcode [Code] - Switch language with language code.\n/detectperm - Detect permissions.\n/backup - Backup configurations.\n/editconf <CONF> - Manually edit settings w/ JSON-formatted text.\n/saveconf - Manually save all settings and translations. Especially useful after upgrades.\n/readconf - Reload configurations without restarting bot.\n/resetconf - Reset configurations.\n/uptime - Check system uptime information.\n/update - Check for updates and update bot.\n/chkupdate - Only check for updates.\n/catconf - Get your current configurations.\n/restart - Restart bot.\n/status - Get host device's status information.\n/perform - Run performance test.\n/testnetwork - Test latency to servers used by pmcenter.\n/chat - Enter Continued Conversation mode.\n/stopchat - Leave Continued Conversation mode.\n/retract - Retract a message.\n/clearmessagelinks - Clear message links.\n/getstats - Get statistics data.\n/help - Display this message.\n\nThank you for using `pmcenter`!",
10
+
"Message_Help": "❓ `pmcenter` *Bot Help*\n/start - Display welcome message.\n/info - Display the message's info.\n/ban - Restrict the user from contacting you.\n/banid <ID> - Restrict a user from contacting you with his/her ID.\n/pardon - Pardon the user.\n/pardonid <ID> - Pardon a user with his/her ID.\n/ping - Test if the bot is working.\n/switchfw - Pause/Resume message forwarding.\n/switchbw - Enable/Disable keyword banning.\n/switchnf - Enable/Disable notifications.\n/switchlang <URL> - Switch language file.\n/switchlangcode [Code] - Switch language with language code.\n/detectperm - Detect permissions.\n/backup - Backup configurations.\n/editconf <CONF> - Manually edit settings w/ JSON-formatted text.\n/saveconf - Manually save all settings and translations. Especially useful after upgrades.\n/readconf - Reload configurations without restarting bot.\n/resetconf - Reset configurations.\n/uptime - Check system uptime information.\n/update - Check for updates and update bot.\n/chkupdate - Only check for updates.\n/catconf - Get your current configurations.\n/restart - Restart bot.\n/status - Get host device's status information.\n/perform - Run performance test.\n/testnetwork - Test latency to servers used by pmcenter.\n/chat - Enter Continued Conversation mode.\n/stopchat - Leave Continued Conversation mode.\n/retract - Retract a message.\n/clearmessagelinks - Clear message links.\n/getstats - Get statistics data.\n/autosave [off/interval] - Switch autosave status.\n/help - Display this message.\n\nThank you for using `pmcenter`!",
11
11
"Message_UserBanned": "🚫 The user has been banned permanently.",
12
12
"Message_UserPardoned": "✅ You've pardoned the user.",
13
13
"Message_CommandNotReplying": "😶 Don't talk to me, spend time chatting with those who love you.",
@@ -70,5 +70,21 @@
70
70
"Message_Retracted": "✅ This message has been retracted.",
71
71
"Message_MsgLinksCleared": "✅ All message links have been cleared.",
"Message_NetCore31Required": "⚠ You need `.NET Core 3.1` (runtime) installed in order to receive pmcenter v2 and further updates.\n\nLatest .NET Core runtime version detected on your device: `$1`\n\nThis warning will only show once."
73
+
"Message_NetCore31Required": "⚠ You need `.NET Core 3.1` (runtime) installed in order to receive pmcenter v2 and further updates.\n\nLatest .NET Core runtime version detected on your device: `$1`\n\nThis warning will only show once.",
74
+
"Message_MsgLinkTip": "ℹ Tip: You need to set `EnableMsgLink` option to `true` in pmcenter configurations in order to reply to anonymously forwarded messages.\nThis also happens when the message link for the message couldn't be found.\nDue to Telegram API's restrictions, it's impossible now to reply to that message.\nAfter you set `EnableMsgLink` to `true`, you'll be able to reply to this kind of messages.\n\nThis tip will only prompt once.",
"Message_AutoSaveIntervalTooShort": "⚠ The current autosave interval (`$1ms`) is *too short*! It may cause high CPU and disk usage as a result. *Disable it if you didn't intend to do that!*",
"Message_Action_ChooseAction": "❓ *What do you want to do with this message?*",
85
+
"Message_Action_Ban": "✖ Ban the user",
86
+
"Message_Action_Pardon": "✅ Pardon the user",
87
+
"Message_Action_Chat": "💬 Enter continued conversation",
88
+
"Message_Action_StopChat": "💬 Stop continued conversation",
89
+
"Message_Action_LinkNotFound": "✖ Cannot find the corresponding message link, did you just clear the message links, or was the message links feature disabled?"
0 commit comments