Kategorie: Code

  • Website Relaunch

    Website Relaunch

    Nach fast 2 Jahren habe ich auch mal miene Website angepasst.
    Endlich mit einem headless CMS und einer schöneren Oberfläche.

    Feedback gerne an mail@lokianer.de

  • Linktree für meine Socials

    Linktree für meine Socials

    Ich habe eine Linktree-Seite erstellt, um meine verschiedenen Social-Media-Profile und andere Online-Präsenzen zu verlinken. Auf dieser Seite findest du Links zu meinen Profilen auf Twitch, Twitter, Instagram, GitHub, Ko-Fi und meiner persönlichen Website.

    Hier sind die Links zu meinen Social-Media-Profilen:

    • Twitch: Schau vorbei, wenn du Live-Streams zu verschiedenen Themen wie Programmierung, Gaming und mehr sehen möchtest.
    • Twitter: Folge mir für Updates, Gedanken und interessante Inhalte aus der Tech-Welt.
    • Instagram: Sieh dir meine neuesten Fotos, Reisen und andere interessante Dinge in meinem Leben an.
    • GitHub: Schau dir meine Open-Source-Projekte und Code-Beispiele an.
    • Ko-Fi: Unterstütze mich mit einer Tasse Kaffee, um mich bei meinen kreativen Projekten zu unterstützen.
    • Persönliche Website: Besuche meine Website, um mehr über mich und meine Arbeit zu erfahren.

    Folge mir auf diesen Plattformen, um auf dem Laufenden zu bleiben und mit mir in Kontakt zu treten. Ich freue mich darauf, von dir zu hören!

    Und hier der Link zum Tree: tree.lokianer.de.

  • Instagram Discord Poster

    Instagram Discord Poster

    Download the script here. A Python script, that searches the new post of a specific Instagram Account and post it on a specific Discord Channel.

    Updated: 2023-02-02
    Changes: You can now add multiple Instagram Accounts to the script. The script will post the new posts of all the Accounts on the Discord Channel.

    Updated: 2023-02-15
    Changes: Added a sleep timer, so the script does not spam the Discord Channel and does not reach the rate limit. And added new check for new posts. It seems, that instagram changes the URL for the media after some time.

    Requirements

    • Python 3.10 or higher
    • instaloader
    • discord.py
    • python-dotenv
    • A Discord Bot Token
    • An Instagram Account
    • The old_post.json file is needed for the script to work. It has to be in the same directory as the script. Modify the file to your needs.

    Installation

    • Install Python 3.10 or higher
    • Install instaloader, discord.py and python-dotenv via pip
    • Create a Discord Bot and copy the Token
    • Create a Instagram Account and copy the Username and Password
    • Create a .env file and add the following lines:
      • INSTAGRAM_USERNAME=“
      • INSTAGRAM_PASSWORD=“
      • DISCORD_TOKEN=“
    • Add the Channel ID of the Discord Channel you want to post the Instagram Posts to the script. Line 63. (channel = client.get_channel(CHANNEL_ID)) (How to get the Channel ID) (For some reason, the Channel ID does not work in the .env file)
    • Run the script

    Feel free to report any bugs or issues.

  • Portfolio page is online

    Portfolio page is online

    I finally made the portfolio page online. It is now hosted on my own server, and I can see it in my browser. It is a little bit messy, but it works.

    You can visit the page here.

    Please send me an email if you have any questions and suggestions.

    That’s all.

  • Syncbot

    Syncbot

    Description

    This is a SyncBot. It synchronises a Twitch chat with a specific Discord channel.

    Download it here.

    Start the bot

    With node index.js, you can start the bot. Before that make sure, you create a config.JSON with the respectiv Attributes, or add the values directly to the index.js.

    Dependencies

    • discord.js: ^12.5.3
    • dotenv: ^9.0.2
    • nodemon: ^2.0.7
    • tmi.js: ^1.8.3

    Accounts

    Twitch

    You need a Twitch account to join the channel and read the messages. Additionally, you need an OAuth Token. You can request one here.

    Discord-Bot

    You need a Discord application, you can create one here. Add the bot to your server

    License

    ISC License (ISC) Copyright 2021 Lokianer

    Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

    THE SOFTWARE IS PROVIDED „AS IS“ AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.