Easiest way to assign premium to self?

I set up this bot using the dockerfile, and was wondering if there's an easy way to assign my own server(s) premium without digging in to the code to change values. I'm not very familiar with docker or rust, so changing the code would be a bit of a challenge for me 😅
11 Replies
Da Bald Eagul
Da Bald EagulOP•2mo ago
Slightly different issue; I see that the bot knows there's 5 upvotes for this message, but it does not display in the starboard. There's no filters applied to that starboard...
No description
Da Bald Eagul
Da Bald EagulOP•2mo ago
^ even when forced it doesn't want to post, even though it has the appropriate permissions.
CircuitSacul
CircuitSacul•2mo ago
Remind me to answer in a couple hours @Da Bald Eagul for the first question, you'll have to edit the database directly. Assuming you know how to use postgresql, you can just update your user and give yourself credits. You can also do this with the star sql command, but make sure your user ID is in the owner_ids .env var, and that development=true (otherwise it'll force-rollback the change.) After this you can just use /premium redeem star sql return=true
update users set credits=999 where user_id=321733774414970882 returning *;
update users set credits=999 where user_id=321733774414970882 returning *;
Starboard
Starboard•2mo ago
Query ?query? ran 1 times, with an average time of 3.326044ms.
- {"patreon_status": "0", "is_bot": "f", "user_id": "321733774414970882", "credits": "999", "donated_cents": "0"}
- {"patreon_status": "0", "is_bot": "f", "user_id": "321733774414970882", "credits": "999", "donated_cents": "0"}
CircuitSacul
CircuitSacul•2mo ago
Is the original message in an NSFW channel? if it is, you'll have to make the starboard channel NSFW also, otherwise it won't show up
Starboard
Starboard•2mo ago
Done. Tip: Use /premium autoredeem enable to enable autoredeem for this server, so you don't have to repeatedly redeem credits.
Da Bald Eagul
Da Bald EagulOP•2mo ago
Alright thanks Ahhhh okay
Da Bald Eagul
Da Bald EagulOP•2mo ago
🤔 am I doing anything wrong?
No description
No description
Da Bald Eagul
Da Bald EagulOP•2mo ago
(Name is blurred because it's my actual name in that server 😅)
CircuitSacul
CircuitSacul•2mo ago
Try adding rollback=false
Da Bald Eagul
Da Bald EagulOP•2mo ago
That worked, thanks!
Want results from more Discord servers?
Add your server