Die Abenteuer des HiQ Smart Bots Teil 2/The Adventures of the HiQ Smart Bot Part 2(Deu/Eng)

in Wochen-Wahnsinn2 years ago

Der HiQ Smart Bot hat wieder neue Funktionen bekommen. Im letzten Teil ging es um die beliebte Diesel Pool Auslesefunktion. Wenn euch diese interessieren sollte meldtet euch einfach bei mir. Vielleicht habt ihr schon bemerkt, dass man HiQ - Das Hivestyle Magazin auch abonnieren kann, um die stylische HiQ Subscriber Badge zu bekommen. Um die HiQ zu abonnieren, müsst ihr einfach mit +ABO unter den aktuellen Post von @hiq, @hiq.magazine, @hiq.shares oder @hiq.redaktion schreiben.

Schön wäre es, wenn das Verteilen der Badge automatisch funktionieren würde. @felixxx hat mir empfohlen eine Datenbank zum Erfassen der Userdaten und die Python Bibliothek SQLAlchemy zu benutzen.

Eine zweite Herausforderung war das Durchführen von automatisierten Tasks. Dafür habe ich etwas mit der Bibliothek Appscheduler rumgespielt. Nachdem ich etwas im Code von @jedigeiss gespickt habe, habe ich mich aber für die Tasks von der Bibliothek Discord.py entschieden.

Zusätzlich habe ich die meisten Commands in Cog (Extensions ausgelagert). Das hat verschieden Vorteile insbesondere für die Help Funktion. Abhängig davon wo der Help Befehl benutzt wird, zeigt der Bot auch nur die verfügbaren Befehle an.

The HiQ Smart Bot has got new functions again. The last part was about the popular diesel pool readout function. If you are interested in this feature, just contact me. Maybe you have already noticed that you can subscribe to HiQ - The Hivestyle Magazine to get the stylish HiQ Subscriber Badge. To subscribe to HiQ you just have to write with +SUB under the current post of @hiq, @hiq.magazine, @hiq.shares or @hiq.redaktion.

It would be nice if badge distribution would work automatically. @felixxx recommended me to use a database to collect the user data and the Python library SQLAlchemy.

A second challenge was to perform automated tasks. For this I played around a bit with the Appscheduler library. However, after spitballing a bit in @jedigeiss' code, I decided to use the tasks from the Discord.py library.

Additionally I have moved most of the commands to Cogs (Extensions). This has several advantages especially for the help function. Depending on where the help command is used, the bot shows only the available commands.


OMG Buttons


Nach dem Meet Up von @blue.rabbit dachte ich mir, dass Buttons eine super Idee wären, um zum Beispiel zu voten oder die Mana zu checken. Nachdem ich etwas in das Thema reingefomot, bin stellte ich fest, dass ich die Bibliothek Pycord für Buttons brauche. Allerdings konnte ich diese unter Python 3.7 nicht installieren. Nach einem Upgrade auf Python 3.10 hatte ich aber das Problem, dass ich Beem nicht mehr installieren konnte. Aber auch dafür fand sich eine Lösung. Ich musste openSSL installieren, was ein Tip von @smooms war. Wie von Zauberhand ging daraufhin die Installation von Beem. Jetzt konnte ich endlich etwas mit den Buttons rumspielen und ein Mana Check funktioniert sogar schon.

OMG Buttons


After the meet up of @blue.rabbit I thought that buttons would be a great idea, for example to vote or to check the mana. After I got a little bit into the topic, I found out that I need the library Pycord for buttons. However, I could not install it on Python 3.7. After upgrading to Python 3.10, however, I had the problem that I could no longer install Beem. But I found a solution for that as well. I had to install openSSL, which was a tip from @smooms. As if by magic the installation of Beem worked. Now I could finally play around with the buttons and a mana check even works.


Die Abofunktion


Neue Abonnenten (oder falls es jemand wagen sollte zu deabonnieren) werden jetzt voll automatisch bei uns im Discord gestreamt, sobald ein entsprechenden Kommentar verfasst wird. Außerdem wird auch die Badge automatisch vergeben bzw. unhivestylischen Menschen entzogen.

Zukünftig soll die Datenbank auch benutzt werden, um Discord User mit ihren Hive Namen eindeutig zuordnen zu können. Bisher geht das nur für das HiQ Team.

The subscription function


New subscribers (or if someone should dare to unsubscribe) are now fully automatically streamed to us in Discord, as soon as a corresponding comment is written. In addition, the badge is also automatically awarded or withdrawn from unhivestylish people.

In the future, the database will also be used to uniquely assign Discord users with their Hive names. So far this is only possible for the HiQ Team.


Postpromotion


Auch gibt es jetzt eine Botfunktion, die Beiträge aus einer Community automatisch auf Discord postet, sobald ein neuer Beitrag verfasst wird.

Ich überlege auch noch wie ich eine Kurationsfunktion einzubauen. Vermutlich werde ich das über Buttons realisieren.

Postpromotion


Also, there is now a bot function that automatically posts posts from a community to Discord when a new post is posted.

I'm also still thinking about how to implement a curation function. Probably I will realize this via buttons.

GIFs

Auch die Gif Funktion wurde überarbeiten. Schreibt ihr jetzt $gif (für ein GIF) oder $emoji in den Discord ...

Aber das probiert ihr am besten selbst im HiQuarters Discord oder auf den zwei weiteren Discords, wo der Bot mittlerweile sein Unwesen treibt, aus.

GIFs


Also the GIF function has been reworked. Do you write $gif (for a GIF) or $emoji in the Discord now ...

But you can try it yourself in the HiQuarters Discord or on the two other Discord, where the bot is now running.

Sort:  

Servus @quekery,

Hier ist der Banner für die

https://files.peakd.com/file/peakd-hive/louis88/2458fcAvauekYupsmiqrDZ26deXwz5gmjoxkTDL38RK4PQ9c6a1LbW5NtV3xgywMNt9E8.jpg

Einmal der Englische Link dafür:

https://www.kicktipp.com/hive-soccer-cup/

und der deutsche link:

https://www.kicktipp.de/hive-soccer-cup/

Zur Zeit sind Preise zugesagt im Wert von ca. 1100 Hive und 150 HBD!!!

https://hive.blog/hive-162239/@jaki01/bundesliga-soccer-competition-on-kicktipp-season-202223-bundesliga-soccer-competition-auf-kicktipp-saison-202223#@reiseamateur/rf4qeb

Sage schon mal im Namen aller Tipper und jene die noch kommen DANKE!!!
lg !PGM mit noch mehr !invest_vote 🤠

Ich habs mal an @smooms weitergegeben !LOOL

Wie viele HIQS wollten wir nochmal sponsoren? An an welchen Account sollen wir das schicken?

!PIZZA !LUV

Zwei Kannibalen unter sich: Stell dir vor - ich habe gestern einen Schauspieler gegessen. Und?
Sehr gut, kein Rückgrat und ne riesige Leber!

Credit: solymi
@reiseamateur, ich habe dir im Namen von @quekery einen $LOLZ Token gesendet
Verwende den Befehl !WITZ oder !LOOL, um einen Witz und ein $LOLZ zu teilen.
Have you tried the !gif !lolz !meme combo? It is a wall of fun!
.(1/1)


Credit: crossedmat
Earn Crypto for your Memes @ hiveme.me!

Zum Beispiel könnte so Platz 2 34 mal 5 HIQS gewinnen

insgesamt 170 HIQS
Hier dein reply dazu vom 6.6.2022:

https://hive.blog/hiq/@quekery/re-reiseamateur-rd2hux

Wenn ihr mir Monatlich die Gewinn Summe sendet
also 20 dann wieder 25 und dann wieder 20 usw.
Würde ich gleich die Gewinn Auszahlung für den 2.Platz mit machen...
Ansonsten Wöchentlich im Tipp recap nachsehen wer 2. geworden ist!

Hier noch ein !BEER chen zur Abkühlung... lg

Ich schick dir die 170

!PIZZA


Hey @quekery, here is a little bit of BEER from @reiseamateur for you. Enjoy it!

Do you want to win SOME BEER together with your friends and draw the BEERKING.

Sent 0.1 PGM - 0.1 LVL- 1 STARBITS - 0.05 DEC - 15 SBT tokens to @reiseamateur, @quekery

remaining commands 9

BUY AND STAKE THE PGM TO SEND A LOT OF TOKENS!

The tokens that the command sends are: 0.1 PGM-0.1 LVL-2.5 BUDS-0.01 MOTA-0.05 DEC-15 SBT-1 STARBITS-[0.00000001 BTC (SWAP.BTC) only if you have 2500 PGM in stake or more ]

5000 PGM IN STAKE = 2x rewards!

image.png
Discord image.png

Support the curation account @ pgm-curator with a delegation 10 HP - 50 HP - 100 HP - 500 HP - 1000 HP

Get potential votes from @ pgm-curator by paying in PGM, here is a guide

I'm a bot, if you want a hand ask @ zottone444


Dear @quekery, we need your help!

The Hivebuzz proposal already got important support from the community. However, it lost its funding a few days ago when the HBD stabilizer proposal rose above it.

May we ask you to support it so our team can continue its work?
You can do it on Peakd, Ecency,

Hive.blog / https://wallet.hive.blog/proposals
or using HiveSigner.
https://peakd.com/me/proposals/199

All votes are helpful and yours will be much appreciated.
Thank you!

PIZZA! PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
@quekery(2/15) tipped @reiseamateur (x2)

Join us in Discord!

!hiqvote

Loading...

!hiqvote