Comments (11)
That's okay - ignore it. I'm just logging these to notice about them.
from nyxx.
Bot cannot disconnect itself or something like that. Maybe your server suspends bot process. I have bot running correctly for 24h and another for 18h. Can you setup some message logging, or/and periodic timer to print if program is running.
For ex:
Timer.periodic(const Duration(minute: 1), (t) => print(bot.guilds.count));
EDIT:
Also please update your script to latest nyxx and provide shards, guilds and users count.
from nyxx.
I'm going to add some periodic logging and will get back to you, thanks.
from nyxx.
I don't understand, I've had the process opened in a terminal the whole time, it kept printing to the console but the bot still went offline.
▶ dart bin/main.dart
[FINE] {CommandsFramework} - 15.10.2018 10:29:38:234 -- Command [mp] has been registered
[FINE] {CommandsFramework} - 15.10.2018 10:29:38:245 -- Command [game] has been registered
[FINE] {CommandsFramework} - 15.10.2018 10:29:38:247 -- Command [player] has been registered
[FINE] {CommandsFramework} - 15.10.2018 10:29:38:248 -- Command [update] has been registered
[FINE] {CommandsFramework} - 15.10.2018 10:29:38:249 -- Command [doodle] has been registered
[INFO] {Client} - 15.10.2018 10:29:39:781 -- Connected and ready!
Ready!
2018-10-15 10:44:38.310004 still alive?
2018-10-15 10:59:38.309588 still alive?
2018-10-15 11:14:38.309594 still alive?
2018-10-15 11:29:38.309588 still alive?
2018-10-15 11:44:38.309584 still alive?
2018-10-15 11:59:38.309579 still alive?
2018-10-15 12:14:38.309577 still alive?
2018-10-15 12:29:38.309579 still alive?
2018-10-15 12:44:38.309567 still alive?
2018-10-15 12:59:38.309564 still alive?
2018-10-15 13:14:38.309554 still alive?
2018-10-15 13:29:38.309544 still alive?
2018-10-15 13:44:38.309576 still alive?
2018-10-15 13:59:38.309557 still alive?
2018-10-15 14:14:38.309555 still alive?
2018-10-15 14:29:38.309570 still alive?
from nyxx.
I found just now problems with sessions invalidating right after READY
event.
Can you create listener to onDisconnect
event? Please provide info with close code and shard number.
from nyxx.
I will do that later today yes ;-)
from nyxx.
Are you setting presence for your bot? Gateway disconnects me due invalid opcode when sending STATUS_UPDATE
.
But bot shouldn't be disconnected due we don't have any message.
from nyxx.
Nope, I'm not setting the bot's presence. I'll have a look on how to set it.
from nyxx.
Pushed possibly fix for this problem. Please test against latest commit.
from nyxx.
I've update my code for the newest Nyxx version and it seems to be working on my local machine. I'll run it tonight on my server and will let you know ;-)
from nyxx.
The bot is still connected and responsive to commands (12h uptime) so I'd say it looks promising!
I don't know if it's relevant to you but I've had the following log several times:
UNKNOWN OPCODE: {"t":"GUILD_INTEGRATIONS_UPDATE","s":2577,"op":0,"d":{"guild_id":"450704289141358607"}}
from nyxx.
Related Issues (20)
- bug: Error whenever a post is reopened HOT 1
- AttachmentBuilder.fileName should not be optional.
- Better plugin interface
- Make Attachment implement CdnAsset
- Allow specifying stdout and stderr for Logging
- Incorrect method usage in README example
- Incorrect method usage in README example HOT 2
- Provide caching for "special" entities & gateway initialisation data
- Assertion error when having a 0xffffff value on DiscordColor
- Error when trying to fetch a message that has mentioned roles
- NyxxPluginState is not exported
- Cannot parse mentions in MESSAGE_UPDATE
- Type cast is incorrect when using etf payload format HOT 1
- Nyxx can't be used in the web HOT 8
- Music Bot HOT 1
- Allow customising gateway properties when Identifiy is sent. HOT 1
- Allow to get more than 25 users who reacted on a message
- Cannot get guild information using OAuth2
- Cache performance is extremely disappointing
- Getting Unknown Interaction when using commads HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nyxx.