This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Error notify configuration
Alas use Onepush for push message. Support multiple platforms like Bark, ServerChan, Discord, mail(SMTP) etc.
Complete support list here Onepush providers
Obtain params
Each platform requires different parameters.
Take Bark as example,
In Onepush repository,find _params
in providers/bark.py
_params = {
'required': ['key'],
This shows that this provider requires key
as parameters.
In Bark APP, we can find key
here in the server list
In this example key
is Vg*******************
For other platform, please refer to their document for more details.
Feel free to add more tutorials
Configuration
Configuration is in yaml format. Need push service name provider
and their corresponding parameters.
Bark
In the case of Bark, the parameters key
have been obtained above: Vg*******************
So the final configuration is
provider: bark
key: Vg*******************
Let's add more parameter, such as sound
provider: bark
key: Vg*******************
sound: alert
don't forget ssl
provider: smtp
host: smtp.gmail.com # smtp server address
user: your@gmail.com # username, usually this is your mailbox address
password: Passw0rd! # password to login, for some service provider you need to apply for an individual key to use smtp.
port: 587 # smtp server port, use ssl port(465, 587, etc.) for secure if possible.
ssl: true # explicitly specifies to use ssl connection. When the port is 465, ssl will be used automatically.
provider: smtp
host: smtp.qq.com
user: 123456789@qq.com
password: Passw0rd!
port: 465
# ssl: true
Commom mail service
- gmail: https://support.google.com/mail/answer/7104828
- host:
smtp.gmail.com
- port:
587
- ssl:
true
- host:
Discord Webhook
provider: discord
webhook: https://discord.com/api/webhooks/12345678912345678900/verylongstring_veryveryverylongrandomstring
Pushplus
provider: pushplus
token: ********************
Pushdeer
provider: pushdeer
pushkey: **********************
ServerChanTurbo
provider: serverchanturbo
sctkey: SCT16*************************
Telegram Bot
provider: telegram
token: 16xxxxxxx:xxxxxxxxxxx # get from @BotFather
userid: 10000000 # get from @userinfobot
api_url: api.telegram.org
Wechatwork application
provider: wechatworkapp
corpid: xxxxxxxx
corpsecret: xxxxxxxx
agentid: 10001
Wechatwork bot
provider: wechatworkbot
key: xxxxxxxx
dingtalk
provider: dingtalk
token: xxxxxxxx
go-cqhttp
provider: gocqhttp
endpoint": http://cqhttp.example.com:5700
access_token: YOUR_TOKEN
message_type: private
# user_id: 12345678
# group_id: 12345678
Custom webhook
provider: custom
url: https://your.web.hook/path # your webhook
method: post # http method
data: # data dict
your_arg: aaa
your_arg2: bbb
Finally, copy your yaml to Alas -> Debug Settings -> Error notify config.
Test pushing
Open mail page in game, find any task and clear its next run
to add it to the waiting queue, then run alas. This will send a GamePageUnknownError few seconds later.
Getting Started
- Installation [EN]
- Installation [CN]
- Installation With Docker [EN]
- Emulator Support [CN]
- FAQ [EN/CN]
- FAQ [JP]
- Troubleshooting [EN]
- Another Installation guide
- Research Filter String [EN]
- Research Filter String [CN]
- Reward Shop Filter String [EN/CN]
- Onepush Configuration [EN]
- Onepush Configuration [CN]
Development
- Perspective [CN]
- Perspective [EN]
- Debug perspective [CN]
- Debug perspective [EN]
- Item Statistics [EN]
- 1. Start
- 2.1. Debugging
- 2.2. Multi-server support
- 3.1. Utils
- 3.2. Decorators
- 3.3. Log
- 3.4. Exception
- 4.1. Detection objects
- 4.2. UI control
- 4.3. OCR
- 4.4. State loop
- 5.1. Local Map
- 5.2. Create globe Map
- 5.3. Globe Map
- 6.1. GUI Option
MISC