[NEW] How to add a DataBase to your Bot in less than 20 Min | Nextcord & SQLite

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ธ.ค. 2024

ความคิดเห็น • 38

  • @Bumblebee124
    @Bumblebee124 3 ปีที่แล้ว +6

    17:18 man didnt even respond to the travis scott thing bro
    Glow pin this lol

  • @zrunner2084
    @zrunner2084 3 ปีที่แล้ว +9

    Small tip: creating a new connection for each request is considered as a bad practice, because for relatively large bots that’ll just connect and disconnect your bot dozens of time. Usually you want a method to create the connection only when needed, and return it as much as you need (and don’t forget to close it when your bot is shut down)

  • @CodeBinge
    @CodeBinge 3 ปีที่แล้ว +1

    The ctrl shift p is called command pallet btw

  • @1Andydude
    @1Andydude 2 ปีที่แล้ว

    This doesn't work anymore. Right when you hit run for the first time, we get errors.

  • @atharva.upadhyay
    @atharva.upadhyay 3 ปีที่แล้ว +2

    i know u wont believe it i was just banging my head thinking how could i use a db in my bot

  • @armoured-self
    @armoured-self 2 ปีที่แล้ว +1

    Are you supposed to only be able to add one user at a time with this example?

  • @loveatl
    @loveatl ปีที่แล้ว

    where you make id and guild integers, does it work if you do strings too?

  • @larsbergmann6735
    @larsbergmann6735 3 ปีที่แล้ว

    Is there a way to pull the data from a Json to the db without having to re-enter everything?

  • @daeltam
    @daeltam 3 หลายเดือนก่อน

    Heyy whats the extension you're using that gives this error messages directly in your code ? That's very useful

    • @glowstik
      @glowstik  3 หลายเดือนก่อน +1

      I think its called Error Lens
      its also listed in my youtube short: th-cam.com/users/shorts2w0vly6i3Io

    • @daeltam
      @daeltam 3 หลายเดือนก่อน

      @@glowstik Yay thanks, just installed it !

  • @flavourinside5102
    @flavourinside5102 3 ปีที่แล้ว +1

    Hey what's the name of theme that you use on vsc

    • @glowstik
      @glowstik  3 ปีที่แล้ว +1

      sublime monakai

  • @lifeistrue1893
    @lifeistrue1893 2 ปีที่แล้ว

    Hey how you check your users added if you dont use VSC

    • @glowstik
      @glowstik  2 ปีที่แล้ว

      you can always make a command that checks for you...

  • @ummmmmf9712
    @ummmmmf9712 2 ปีที่แล้ว

    Can i make this system if i understand the video or sqlite
    My command is setchannel imagine there are 3 servers using my bot
    Server1 setchannel for general
    Server2 setchannel for bot-commands
    Server3 setchannel for chatting
    Bot should respond for each server channel
    Can i make it with database in video?

    • @ummmmmf9712
      @ummmmmf9712 2 ปีที่แล้ว

      Is it work like this store guild ids then store set channel ids for each guilds?

  • @Taki7o7
    @Taki7o7 ปีที่แล้ว

    isn't it very bad to connect for each command? Normally you connect and stay connected or no?

    • @glowstik
      @glowstik  ปีที่แล้ว

      yeah typically you should connect on ready and leave it be, i fix this in later tutorials

    • @itsyaboivoid
      @itsyaboivoid ปีที่แล้ว +1

      @@glowstik you shouldn't connect it on ready
      on ready can trigger two times
      instead do it in your bot class

  • @celaph8734
    @celaph8734 3 ปีที่แล้ว

    Which Autocompleter is this? Its so nice you even didn't type anything and it knows what you'll code and you just press enter, enter, enter. Its a good plugin can you say what it is called?

    • @glowstik
      @glowstik  3 ปีที่แล้ว +1

      its called tabine... tab9.in/glowstik if you wanna install it

    • @celaph8734
      @celaph8734 3 ปีที่แล้ว

      @@glowstik sure thx!

    • @danshoo
      @danshoo 2 ปีที่แล้ว

      @@glowstik link not work error 404 can help to install it

  • @xyr0s.official
    @xyr0s.official ปีที่แล้ว

    Hey nice video, can you explain how to make a shared database between two discord bots so that both can access it?

    • @glowstik
      @glowstik  ปีที่แล้ว +1

      sqlite is a local db, you would need to use something like a postgres server or mongodb to achieve that

    • @xyr0s.official
      @xyr0s.official ปีที่แล้ว

      @@glowstik I need to do it because I can't find out how to exchange a url link between two bots, since sending a DM to each other doesnt work... so I was thinking about storing the link in a shared database database so that both can read it

  • @martincatalan7752
    @martincatalan7752 2 ปีที่แล้ว

    good video, it helped me a lot :D

  • @nxrmqlly
    @nxrmqlly 3 ปีที่แล้ว +1

    2 min gang

  • @ifeellikeiwasborntoloveya6547
    @ifeellikeiwasborntoloveya6547 3 ปีที่แล้ว +2

    fisrt

  • @vincentrps
    @vincentrps 3 ปีที่แล้ว +1

    sqlite is pretty meh

    • @glowstik
      @glowstik  3 ปีที่แล้ว +4

      its simple and easy to use ._.