Discuss Scratch
- Discussion Forums
- » Collaboration
- » Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
- ForzaHorizon786
-
Scratcher
22 posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Ok, guys, here's a list of some basic things we need to complete:
1. Server code (I will deal with it)
2.Text engine
3. Website editor
I might be able to make a text engine
- xouzouris
-
Scratcher
100+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Great!Ok, guys, here's a list of some basic things we need to complete:
1. Server code (I will deal with it)
2.Text engine
3. Website editor
I might be able to make a text engine
- xMysticalCoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Ok, guys, here's a list of some basic things we need to complete:
1. Server code (I will deal with it)
2.Text engine (ForzaHorizon786)
3. Website editor (Ancoder)
here is the old server code with some changes. it'll be easier to change this code to make it match with the format than rewriting the whole thin
# Neccassary downloads, imports, and connections
import os
from replit import db
os.system(“python -m pip install scratch2py && pip install –force-reinstall websocket-client”)
from scratch2py import Scratch2Py
password = os.environ('password') # Wont work for you unless you have an enviroment variable. also replace ( ) with square brackets.
s2py = Scratch2Py('xMysticalLegend', password)
cloudproject = s2py.scratchConnect('607177132')
# All websites
db(“test.fl”) = “test successful” # replace ( ) with square brackets
# Search engine code
while True:
print(“Started”)
search = str(cloudproject.readCloudVar('s'))
try:
search = str(s2py.decode(search))
except ValueError:
print(“Encoding failed. Starting again.”)
continue
print(search)
try:
result = db(search) #replace ( ) with square brackets
except:
cloudproject.setCloudVar('status', ‘1’)
print(“Search is not valid. Going back to top”)
continue
print(“Search is valid. Encoding result”)
eResult = s2py.encode(result)
print(“Result encoded.”)
cloudproject.setCloudVar(“r”, eResult)
print(“Result sent.”)
some variables aren't 100% neccassary, just added them to keep stuff organized.
i added prints to let my self know what “stage” it's in.
i shall now become inactive active again. also why can't i escape the quote![]()
Last edited by xMysticalCoder (Nov. 27, 2021 20:06:50)
- xouzouris
-
Scratcher
100+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Ok, guys, here's a list of some basic things we need to complete:
1. Server code (I will deal with it)
2.Text engine (ForzaHorizon786)
3. Website editor (Ancoder)
here is the old server code with some changes. it'll be easier to change this code to make it match with the format than rewriting the whole thin# Neccassary downloads, imports, and connectionsThank you so much!
import os
from replit import db
os.system(“python -m pip install scratch2py && pip install –force-reinstall websocket-client”)
from scratch2py import Scratch2Py
password = os.environ('password') # Wont work for you unless you have an enviroment variable. also replace ( ) with square brackets.
s2py = Scratch2Py('xMysticalLegend', password)
cloudproject = s2py.scratchConnect('607177132')
# All websites
db(“test.fl”) = “test successful” # replace ( ) with square brackets
# Search engine code
while True:
print(“Started”)
search = str(cloudproject.readCloudVar('s'))
try:
search = str(s2py.decode(search))
except ValueError:
print(“Encoding failed. Starting again.”)
continue
print(search)
try:
result = db(search) #replace ( ) with square brackets
except:
cloudproject.setCloudVar('status', ‘1’)
print(“Search is not valid. Going back to top”)
continue
print(“Search is valid. Encoding result”)
eResult = s2py.encode(result)
print(“Result encoded.”)
cloudproject.setCloudVar(“r”, eResult)
print(“Result sent.”)
some variables aren't 100% neccassary, just added them to keep stuff organized.
i added prints to let my self know what “stage” it's in.
i shall now become inactive active again. also why can't i escape the quote![]()
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Um can't' website uploading use commenting so it doesn't need a filter
- 101Corp
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Some nice code. WowOk, guys, here's a list of some basic things we need to complete:
1. Server code (I will deal with it)
2.Text engine (ForzaHorizon786)
3. Website editor (Ancoder)
here is the old server code with some changes. it'll be easier to change this code to make it match with the format than rewriting the whole thin# Neccassary downloads, imports, and connectionsThank you so much!
import os
from replit import db
os.system(“python -m pip install scratch2py && pip install –force-reinstall websocket-client”)
from scratch2py import Scratch2Py
password = os.environ('password') # Wont work for you unless you have an enviroment variable. also replace ( ) with square brackets.
s2py = Scratch2Py('xMysticalLegend', password)
cloudproject = s2py.scratchConnect('607177132')
# All websites
db(“test.fl”) = “test successful” # replace ( ) with square brackets
# Search engine code
while True:
print(“Started”)
search = str(cloudproject.readCloudVar('s'))
try:
search = str(s2py.decode(search))
except ValueError:
print(“Encoding failed. Starting again.”)
continue
print(search)
try:
result = db(search) #replace ( ) with square brackets
except:
cloudproject.setCloudVar('status', ‘1’)
print(“Search is not valid. Going back to top”)
continue
print(“Search is valid. Encoding result”)
eResult = s2py.encode(result)
print(“Result encoded.”)
cloudproject.setCloudVar(“r”, eResult)
print(“Result sent.”)
some variables aren't 100% neccassary, just added them to keep stuff organized.
i added prints to let my self know what “stage” it's in.
i shall now become inactive active again. also why can't i escape the quote![]()
Does this work?
If yes
You put the wrong {/quote}
Last edited by 101Corp (Nov. 27, 2021 22:16:13)
- 101Corp
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
I’m gonna work on a mock up image of the backend panel
- xMysticalCoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Um can't' website uploading use commenting so it doesn't need a filterHere is my opinion on this:
Why I agree:
As he already said, comments are moderated, so we wouldn't have to bother looking through website requests and seeing if they should be moderated or not. We could also just make a bot that goes through comments look for website requests and add them to the project, without worrying that it contains 13+ stuff. If we use a website editor, it contains a lot of human labor. (First moderate, then add to project)
Why I disagree:
Think about from the user's perspective. Would you rather work on a clean website editor, or bunch it up in comments.
———————————————————————————–
—————
If we want to finish the project first, then add updates, then we should go with commenting for now, but if there is no rush, we should make a website editor. It will take longer, but make the user experience a lot better.
In my opinion, we should go with commenting. Moderating is solved. We could make a bot to look for website requests and automatically add them. The only human labor is writing the bot.
Last edited by xMysticalCoder (Nov. 27, 2021 22:24:25)
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
I mean like if cloud vars can only store 256 chars (if using to upload websites to moderation). The editor give code to the user to paste code in the comments, then the server will pick up the comment to see if the website already exists if not create a new one else if username is original creator then update website content. The scratch comment moderation system will make sure the site is appropriate.Um can't' website uploading use commenting so it doesn't need a filterHere is my opinion on this:
Why I agree:
As he already said, comments are moderated, so we wouldn't have to bother looking through website requests and seeing if they should be moderated or not.
Why I disagree:
Think about from the user's perspective. Would you rather work on a clean website editor, or bunch it up in comments.
If we want to finish the project first, then add updates, then we should go with commenting for now, but if there is no rush, we should make a website editor. It will take longer, but make the user experience a lot better.
I can make a prototype
Last edited by Ancoder (Nov. 27, 2021 22:27:26)
- xMysticalCoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
I mean like if cloud vars can only store 256 chars (if using to upload websites to moderation). The editor give code to the user to paste code in the comments, then the server will pick up the comment to see if the website already exists if not create a new one else if username is original creator then update website content. The scratch comment moderation system will make sure the site is appropriate.Um can't' website uploading use commenting so it doesn't need a filterHere is my opinion on this:
Why I agree:
As he already said, comments are moderated, so we wouldn't have to bother looking through website requests and seeing if they should be moderated or not.
Why I disagree:
Think about from the user's perspective. Would you rather work on a clean website editor, or bunch it up in comments.
If we want to finish the project first, then add updates, then we should go with commenting for now, but if there is no rush, we should make a website editor. It will take longer, but make the user experience a lot better.
i dont understand. is this what you mean:
1. User creates website
2. Editor gives code (encoded version of website)
3. User pastes code in comments
4. Bot decodes code
5. Bot pastes decoded version in comments
6. Wait for like 10 sec for comment to go through and get moderated
7. Bot checks if comment has been moderated or not
8. If comment is still there, check for plagarism
9. If not plagiarised, add website
10. If plagiarised, dont add website
11. If comment isnt there, don't add website
Last edited by xMysticalCoder (Nov. 27, 2021 22:30:51)
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
No.I mean like if cloud vars can only store 256 chars (if using to upload websites to moderation). The editor give code to the user to paste code in the comments, then the server will pick up the comment to see if the website already exists if not create a new one else if username is original creator then update website content. The scratch comment moderation system will make sure the site is appropriate.Um can't' website uploading use commenting so it doesn't need a filterHere is my opinion on this:
Why I agree:
As he already said, comments are moderated, so we wouldn't have to bother looking through website requests and seeing if they should be moderated or not.
Why I disagree:
Think about from the user's perspective. Would you rather work on a clean website editor, or bunch it up in comments.
If we want to finish the project first, then add updates, then we should go with commenting for now, but if there is no rush, we should make a website editor. It will take longer, but make the user experience a lot better.
i dont understand. is this what you mean:
1. User creates website
2. Editor gives code (encoded version of website)
3. User pastes code in comments
4. Bot decodes code
5. Bot pastes decoded version in comments
6. Wait for like 10 sec for comment to go through and get moderated
7. Bot checks if comment has been moderated or not
8. If comment is still there, check for plagarism
9. If not plagiarised, add website
10. If plagiarised, dont add website
11. If comment isnt there, don't add website
1.User creates website
2.Editor gives user a code of the website possible format: {“name”: “something”. “after”: “.something”, “content”: “something goes here”, “signature”: “encoded content + key to make sure content isn't changed”}
3.Editor changes cloud var to new website and key.
4. Server picks up cloud var adds to checking list (checking list items cleared in 3 mins) checking list loops through to check if comment is by user and is not changed
5. Check if valid domain name and if website needs to be updated or added
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Is this website editor good?
https://scratch.mit.edu/projects/607934715/
https://scratch.mit.edu/projects/607934715/
- xouzouris
-
Scratcher
100+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Is this website editor good?Well, it isn't that bad, but if you could fix the glitches it would be very good.
https://scratch.mit.edu/projects/607934715/
Last edited by xouzouris (Nov. 28, 2021 21:22:52)
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
OkIs this website editor good?Well, it isn't that bad, but if you could fix the glitches it would be very good.
https://scratch.mit.edu/projects/607934715/
- 101Corp
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
It’s good if you don’t count the fact it runs at 0.5fpsOkIs this website editor good?Well, it isn't that bad, but if you could fix the glitches it would be very good.
https://scratch.mit.edu/projects/607934715/
- Ji1mmyB
-
Scratcher
100+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Username: Ji1mmyB
Position: Head Coder(not entirely sure what the difference is between coder and head coder, so I chose head coder)
Why I should choose you: I think I could be a good choice because I have done a lot of testing with the cloud and have quite a bit of experience. If you click on my profile you can see some things that I've done and hopefully get the jist. It would also be good because this is something I actually want to do. Which means I will actually work and try to get stuff done. Another thing to think about, is that I will try to follow exactly whatever the person(s) in charge wants.
Why I should trust you: In theory you can't fully trust anyone because we all know that everyone makes mistakes. But I would trust me, I don't plan on doing anything bad. Also I really don't have anything planned on scratch. All I've really been doing is testing and none of those projects are planned to be shared. So, this would give me something to do, and hopefully that makes me more trustworthy.
Position: Head Coder(not entirely sure what the difference is between coder and head coder, so I chose head coder)
Why I should choose you: I think I could be a good choice because I have done a lot of testing with the cloud and have quite a bit of experience. If you click on my profile you can see some things that I've done and hopefully get the jist. It would also be good because this is something I actually want to do. Which means I will actually work and try to get stuff done. Another thing to think about, is that I will try to follow exactly whatever the person(s) in charge wants.
Why I should trust you: In theory you can't fully trust anyone because we all know that everyone makes mistakes. But I would trust me, I don't plan on doing anything bad. Also I really don't have anything planned on scratch. All I've really been doing is testing and none of those projects are planned to be shared. So, this would give me something to do, and hopefully that makes me more trustworthy.
Last edited by Ji1mmyB (Nov. 29, 2021 01:33:33)
- Ancoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
ill fix that tooIt’s good if you don’t count the fact it runs at 0.5fpsOkIs this website editor good?Well, it isn't that bad, but if you could fix the glitches it would be very good.
https://scratch.mit.edu/projects/607934715/
AHHHHH I pressed TOo many qoutes
Last edited by Ancoder (Nov. 29, 2021 01:58:38)
- xMysticalCoder
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Username: Ji1mmyBI vote for this guy to join.
Position: Head Coder(not entirely sure what the difference is between coder and head coder, so I chose head coder)
Why I should choose you: I think I could be a good choice because I have done a lot of testing with the cloud and have quite a bit of experience. If you click on my profile you can see some things that I've done and hopefully get the jist. It would also be good because this is something I actually want to do. Which means I will actually work and try to get stuff done. Another thing to think about, is that I will try to follow exactly whatever the person(s) in charge wants.
Why I should trust you: In theory you can't fully trust anyone because we all know that everyone makes mistakes. But I would trust me, I don't plan on doing anything bad. Also I really don't have anything planned on scratch. All I've really been doing is testing and none of those projects are planned to be shared. So, this would give me something to do, and hopefully that makes me more trustworthy.
- Ji1mmyB
-
Scratcher
100+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Username: Ji1mmyBI vote for this guy to join.
Position: Head Coder(not entirely sure what the difference is between coder and head coder, so I chose head coder)
Why I should choose you: I think I could be a good choice because I have done a lot of testing with the cloud and have quite a bit of experience. If you click on my profile you can see some things that I've done and hopefully get the jist. It would also be good because this is something I actually want to do. Which means I will actually work and try to get stuff done. Another thing to think about, is that I will try to follow exactly whatever the person(s) in charge wants.
Why I should trust you: In theory you can't fully trust anyone because we all know that everyone makes mistakes. But I would trust me, I don't plan on doing anything bad. Also I really don't have anything planned on scratch. All I've really been doing is testing and none of those projects are planned to be shared. So, this would give me something to do, and hopefully that makes me more trustworthy.
Well, thank you for the support.
- ToastersUnited
-
Scratcher
1000+ posts
Scratchedia - The Internet on Scratch, that's safe (Applications Closed) (2)
Me tooUsername: Ji1mmyBI vote for this guy to join.
Position: Head Coder(not entirely sure what the difference is between coder and head coder, so I chose head coder)
Why I should choose you: I think I could be a good choice because I have done a lot of testing with the cloud and have quite a bit of experience. If you click on my profile you can see some things that I've done and hopefully get the jist. It would also be good because this is something I actually want to do. Which means I will actually work and try to get stuff done. Another thing to think about, is that I will try to follow exactly whatever the person(s) in charge wants.
Why I should trust you: In theory you can't fully trust anyone because we all know that everyone makes mistakes. But I would trust me, I don't plan on doing anything bad. Also I really don't have anything planned on scratch. All I've really been doing is testing and none of those projects are planned to be shared. So, this would give me something to do, and hopefully that makes me more trustworthy.






