Comments (3)
Oh, I remember what this is about.
It's a convenience function because when trivia's base code updates, it won't update the running program until it gets killed and restarted, so I wanted to just ?restart and cause it to die and such.
Considering the relative difficulty in implementing this, and likely the stdout, stderr and stdin file descriptor hoo-ha involved in trying to make this work effectively, I'm going to close this as wontfix.
Frankly, it's not that big of a deal to kill the bot and start it again.
from triviabot.
If interested yet, I did get a ?restart working in my fork. It seems to work in my testing at least.
The command sets '_restarting' True, quits and then the 'def connectionLost' handles it:
https://github.com/genius3000/triviabot/blob/483023edf295476ef08c4e3b9206c06fe936d1e5/trivia.py#L557
Ignore the comment above it yet, I must have forgotten to remove it.
I could re-work it to this current master branch and send a PR.
from triviabot.
Hm, ok, reviewing how you did that I think it could actually work. Using execl in an exception handler would replace the current process with the new one, and in this case it would be the updated script.
I'll reopen this. If you want to submit a PR I'll review and merge it. If you're busy, the link you posted is enough to go off of for me to do something similar.
Thanks!
from triviabot.
Related Issues (20)
- Limit the number of standings so we don't wait 10 minutes for them to be printed out. HOT 2
- logging reported questions HOT 3
- using a database for questions and answers HOT 4
- Official #triviabot-dev channel on QuakeNet HOT 5
- clues give away answers that are 3 characters or less HOT 7
- using os.path for portability HOT 1
- add version information
- add option to config so "nameless's trivia bot" string will show admin name HOT 6
- add config option for different WAIT_INTERVAL HOT 3
- a more graceful death
- What python need to run? HOT 1
- Fix the stupid lambda some day. HOT 7
- HI HOT 1
- Make the bot say "nick, you got it!"
- Port the bot to python3.
- Answers must be given in the game channel HOT 6
- Always give three clues HOT 3
- Improve skip vote system HOT 2
- Question: Multiple data files? HOT 5
- Wrong answer
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 triviabot.