Discord Thread mongo database skript

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.

skUnity Discord

Site Manager
Aug 5, 2023
12,755
1
0
The skUnity Discord
discord.gg
code_language.skript:
vb
on script load:
    set {mongoAvised} to mongo server with connection string ""
    set {mongoDatabase} to mongo database "database" of {mongoAvised}
    set {mongoCollection} to mongo collection "collection" of {mongoAvised}

command /add:
    trigger:
        set {_doc} to a new mongo document
        set mongo value "uuid" of {_doc} to player's uuid
        set mongo value "messages" of {_doc} to 0
        insert mongo document {_doc} into collection {mongoCollection}
        broadcast "1"
hi, im trying to learn mongosk rn, the code above reloads fine, and it broadcasts 1 (youll understand once u read code), but it isnt showin up on the database, but the database is saying that its reciieved a connection at the time i sent the command, so idk

also console seems to be a mess, just a bunch of text, but it doesent seem to be an error, just seems to be connecting i think

Posted by: _dialed from the skUnity Discord. View the thread on skUnity Discord here
 
Status
Not open for further replies.