~/gnja.io $ whoami

gnja.io

Tech blog, projects, and astrophotography by Ginja.
PowerShell, C#, Discord bots, Raspberry Pi, and more.

💻

PowerShell

Scripts, modules, and automation guides

🤖

NinjaBot

Discord bot dashboard and management

🌌

Astrophotography

Deep sky and planetary imaging gallery

Latest Posts

View all →
C# Discord Bot: Command Handling
Raspberry PiC#

C# Discord Bot: Command Handling

This post will go over command handling with Discord.Net. Whether you are following along from the Raspberry Pi series, or are just curious about how to do command handling with Discord.Net,...

Jan 16, 20226 min read
PowerShell: Calculating Folder Sizes
PowerShell

PowerShell: Calculating Folder Sizes

Sometimes all you want to know, or need to know, is how big a folder is in PowerShell. To do that, we'll need to use Get-ChildItem and Measure-Object specifically.The quick and dirtyThe first command...

Sep 17, 20202 min read
C# Discord Bot: Adding a Database
Raspberry PiC#

C# Discord Bot: Adding a Database

A database can be used to store and retrieve data that can make your bot even more robust. In this post, I will be going over how to create a database, and use it to expand our 8Ball command. .NET...

Jul 15, 20203 min read
Using $PSBoundParameters in PowerShell
PowerShell

Using $PSBoundParameters in PowerShell

NavigationWhat is $PSBoundParameters?Taking a look at $PSBoundParametersUsing a switch statementSplatting with $PSBoundParametersWrapping things upYou can view all of the example code on GitHub:...

Jan 19, 20203 min read
Visual Studio Code PowerShell Setup
PowerShell

Visual Studio Code PowerShell Setup

Welcome to my Visual Studio Code/PowerShell series! What is Visual Studio Code?Installing VS CodeInstalling ExtensionsPowerShell extensionvscode-icons icon packRainglow theme packPowerShell...

Nov 9, 20196 min read
C# Discord Bot: Logging All The Things
Raspberry PiC#

C# Discord Bot: Logging All The Things

No matter what you're using your bot for, more likely than not you'll want to know what the heck is happening at some point. Luckily, we can add a logging service to get this done. In this post I...

Jul 21, 20196 min read