Creating bots for our server, with Autocode

in DiabetesPeerSupport3 years ago
Authored by @frittro

post-head.png

In this post we call for help with a custom "Upgoats" project for creating a Discord bot, using the Autocode platform.

The idea for our bot.

While the friday_18px.png F.R.I.D.A.Y. is great for getting notifications about new blog posts containing certain keywords, via DM message; it is insufficient to the task when it comes to sending such notification messages in a channel in a Discord server. This is something that we intend to remedy in the HDPS server, with the help of a custom Discord bot. There is already something similar working in the @stemsocial server, and I'm sure that many other Tribes and Communities in the HIVE ecosystem have solved this particular problem for themselves, too.

wheel_wagon-750237.png
As a new Community on the HIVE social blockchain, HDPS wants to avoid the re-inventing of wheels. While innovation is a fine thing, and plagiarism is commonly frowned upon in our ecosystem, even for bots, there is no point struggling to solve a problem that others have already solved. Therefore, we would like to get some input and advice, and maybe even a bit of coding how-to skill, for creating our bot for bringing posts tagged with #diabetes into our Discord server automatically. If we can also get such a bot to automatically add a reaction to each one, so that others can easily upgoat_18px.png "upgoat" the message if they choose to, then that would be even better!

Currently, we use a feature of dyno-premium_18px.png Dyno Premium to count the number of upgoat_18px.png "upgoats" on each post, and if they meet a minimum threshold (currently three) then that post will get automatically hoisted to another channel nearer the top of our server, so that more people will see it, and hopefully upvote_18px.png upvote it for real on the HIVE social blockchain! We would, ideally, like to integrate this facility into our own custom Discord bot, to replace dyno-premium_18px.png Dyno Premium and other third-party bots, especially any commercial / "paid-for" bots which will cause us to spend fiat currency to maintain.

Introducing Autocode.

autocode-about-us.png
SOURCE: autocode.com.
We have selected autocode_18px.png Autocode as the platform / IDE of choice for developing our custom Discord bots for the HDPS Community. autocode_18px.png Autocode says of themselves, ...

Autocode is a toolkit for building amazing bots, apps and websites with APIs. Connect to Discord, Twitch, Slack and more of your favorite games and apps in minutes.

SOURCE: AngelPad.

The autocode_18px.png Autocode Integrated Development Environment (IDE) supports coding in nodejs_18px.png Node.js v14, Javascript. They have built up an entire collection of open-source code snippets that you can copy/paste for some ready-made functionality to add to your bot. They have connectors for a wide range of services, including slack_18px.png Slack, stripe_18px.png Stripe, and Discord. At present there isn't one for HIVE or the Condenser API, but I have requested it to be added. Also, there is the facility for adding user contributed API's to their standard library. This would take considerably more skill than I possess alone!

They do use a referral system, whereby if you use my referral link to sign up with, then I get some extra autocode-ap_white-18px.png Autocode Points, which will help me to keep our bot running for longer without having to pay fiat cash to buy a subscription. Eventually, it would be great if we could get a subscription for the bot though, once the HDPS Community matures a bit. This will allow for growth, as more people post about our tagged topics on the social blockchain.

Moving forward.

We are hoping to gather a team of nodejs_18px.png Node.js / Javascript developers who can work collaboratively on this project, towards the goal of having a fully functional custom Discord bot that can bring posts tagged with #diabetes, (and posts / replies containing the keyword diabetes), into our Discord server automatically, and to automatically add a reaction to each one, so that others can easily upgoat_18px.png "upgoat" the message. Being able to automatically hoist the posts with the most upgoat_18px.png "upgoats" would also be a great feature of such a bot. To achieve this, such developers would need...

  1. Access to our Discord server;
  2. A free account on autocode_18px.png Autocode;
  3. To join our "organisation" in autocode_18px.png Autocode.
Once there, the actual upgoats_18px.png Upgoats code can be found here. We will post updates about the bot development progress on the social blockchain, and in this thread on autocode_18px.png Autocode.

Image Credits

  1. post-head.png – Remix created by @frittro, using elements by autocode.com, used with permission; a post payout icon, as a remix by @frittro, as documented in this post; and the hdps-divider.png (see below).
  2. Various "fair use" organisation and company logos, including Hive, Autocode, Slack, Stripe, Discord, and various Community and Tribe logos.
  3. wheel_wagon-750237.png – an image from PxHere.
  4. hdps-divider.png – Remix created by @frittro, using File:Blue circle for diabetes.svg. (2021, November 22). Wikimedia Commons, the free media repository. Retrieved 02:46, March 7, 2022 from Wikimedia Commons, and a generic heart shape.
  5. post-footer.png – Remix created by @frittro, using the HDPS title image, a remix by @frittro; a background from rawpixel.com; and File:Flickr - moses namkung - The Crowd For DMB 1.jpg. (2020, September 9). Wikimedia Commons, the free media repository. Retrieved 10:14, March 25, 2022 from Wikimedia Commons.
  6. 50_64px.png, 100_64px.png, 500_64px.png, 1000_64px.png, and 5000_64px.png – Remixes created by @frittro, using Hive physical coin design by @bidesign.

Font Credits

Because I use some display fonts as graphical elements in my remix images, I list their use separately here and credit the fontographer(s) who created them. I prefer to use fonts that are freely licensed for both personal and commercial use.

  1. Tahu!.ttf – Created by Syafrizal (a.k.a. Khurasan) and published on DaFont.com under a permissive license.
post-footer.png

This @Diabetes-Support account is not just used for making official announcements from the hdps_18px.png Hive Diabetes Peer Support (HDPS) Community (@hive-141197). It is also used by our curation team to upvote quality content that relates in any way to diabetes, including diagnosis; getting support (including mental health); treatments; alternative therapies; equipment; food; exercise; lifestyle; and comorbidities. If you would like to support this effort, please consider delegating  to the @Diabetes-Support account. There are some icons below that you can click on to make this process easier.

JOIN US!
You are invited to join the hdps_18px.png Hive Diabetes Peer Support (HDPS) Community's server on Discord. Here you will find our curation team; our library of diabetes-related, curated posts; our events stage for livestream sessions; and a wide variety of activities, including bot games; competitions; giveaways; polls; quizzes; and surveys. Come join the fun! Click on the invite image here to join the server.
discord-invite.png

@frittro HiveBuzzlevel  postscommentsupvotesrewardsrepliesupvoted HivePUD 2022-02HivePUD 2022-03HivePUD 2022-04 Configure your profileEngage with people

Sort:  

Love the work you are doing for setting up this community @frittro.
I don't know much about programming bots on discord otherwise I would love to help you with this.

!PIZZA

Haha, that is why this post exists, because I don't know much about programming bots on Discord either, lol. With Autocode I am able to do more than I used to do though, as it is more of a form-filling exercise than actual, direct coding. I select the information that I need from dropdown / combo boxes, and the code is generated for me from there. Even I can handle that much! 😉

Cool! Because I couldn't take it.🤣 I get really nervous when I don't get something right.😜😅

PIZZA!

PIZZA Holders sent $PIZZA tips in this post's comments:
@pravesh0(4/5) tipped @diabetes-support (x1)

You can now send $PIZZA tips in Discord via tip.cc!