Skip to content

Commit

Permalink
ver2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
akshinmustafayev committed Jul 16, 2022
0 parents commit 3a22519
Show file tree
Hide file tree
Showing 375 changed files with 216,315 additions and 0 deletions.
1 change: 1 addition & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
661 changes: 661 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# <img src="assets/images/infrabot.png" height="32" width="32"/> InfraBot

[![infrabot with <3](https://img.shields.io/badge/infrabot-orange)](https://github.com/infrabot-io/infrabot)
<a href="https://img.shields.io/github/license/infrabot-io/infrabot">
<img src="https://img.shields.io/github/license/infrabot-io/infrabot" alt="License" />
</a>
<a href="https://img.shields.io/tokei/lines/github/infrabot-io/infrabot">
<img src="https://img.shields.io/tokei/lines/github/infrabot-io/infrabot" alt="Total lines" />
</a>
<a href="https://img.shields.io/github/downloads/infrabot-io/infrabot/total">
<img src="https://img.shields.io/github/downloads/infrabot-io/infrabot/total" alt="Downloads" />
</a>
<a href="https://img.shields.io/github/stars/infrabot-io/infrabot?style=social">
<img alt="GitHub repo file count" src="https://img.shields.io/github/stars/infrabot-io/infrabot?style=social">
</a>
<a href="https://img.shields.io/github/contributors/infrabot-io/infrabot">
<img alt="GitHub repo file count" src="https://img.shields.io/github/contributors/infrabot-io/infrabot">
</a>

<br><br>

<p align="center">
<img src="assets/images/banner.png" alt="infrabot-logo"/>
</p>

<p align="center">
<br><br>
<a href="https://www.buymeacoffee.com/infrabot.io" target="_blank">
<img width="168px" height="48px" src="assets/images/bymeabeer.png" alt="Buy Me A Beer">
</a>
</p>

---

## :newspaper: Description

infrabot - is an on-premise service which allows you to create your own commandlets to control your infrastructure using a Telegram Bot. Built-in tools will allow to create, configure and manage plugins and application configuration.

<img src="assets/images/demo.gif" alt="infrabot-logo" width="400px" height="400px"/>


## :wrench: Installation

- Donwload and install [.NET 6 runtime](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
- Go to [releases](https://github.com/infrabot-io/infrabot/releases) page to download the latest release

## :clipboard: Documentation

Get started with infrabot, learn how to configure infrabot for your organization.

- [Getting Started](https://infrabot-io.github.io/documentation/gettingstarted.html)
- [Create a Telegram Bot](https://infrabot-io.github.io/documentation/createbot.html)
- [infrabot configuration](https://infrabot-io.github.io/documentation/configoverview.html)
- [infrabot plugin system](https://infrabot-io.github.io/documentation/pluginoverview.html)
- [infrabot service](https://infrabot-io.github.io/documentation/infrabotservice.html)

## :vhs: Plugin support

To add functionality to infrabot and extend its capabilities, plugin system was implemented. Each plugin determines which command infrabot can execute. One plugin - means one commandlet. See [examples](https://infrabot-io.github.io/documentation/examplescripts.html) to get to know how to create plugins.


## :dart: Contributing
You can contribute to infrabot by finding bugs, creating new functionality or writing addons for it.


Binary file added assets/images/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/bymeabeer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/infrabot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions infrabot.ConfigEditor/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<Application x:Class="infrabot.ConfigEditor.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:infrabot.ConfigEditor"
StartupUri="MainWindow.xaml"
xmlns:ui="http://schemas.modernwpf.com/2019">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemeResources />
<ui:XamlControlsResources />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
17 changes: 17 additions & 0 deletions infrabot.ConfigEditor/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace infrabot.ConfigEditor
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
10 changes: 10 additions & 0 deletions infrabot.ConfigEditor/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
75 changes: 75 additions & 0 deletions infrabot.ConfigEditor/Documentation/HelpDocumentation.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8" ?>
<items>
<item>
<name>HelpTelegramBotToken</name>
<heading>Telegram bot token</heading>
<description>Specifies Telegram API token key obtained from @BotFather.&#10;&#10;Example: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpEnableLogging</name>
<heading>Enable logging</heading>
<description>Specifies if service should log all activity.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpEnableReloadConfig</name>
<heading>Enable reload config</heading>
<description>Specifies if to enable /reloadconfig command.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpEnableEmergency</name>
<heading>Enable emergency</heading>
<description>Specifies if to enable /emergency command.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpEnableShowMyID</name>
<heading>Enable emergency</heading>
<description>Specifies if to enable /showmyid command.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpPowerShellDefaultPath</name>
<heading>Enable emergency</heading>
<description>Specifies full path to PowerShell.exe on your system.&#10;&#10;By default it is:&#10;C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpPowerShellArguments</name>
<heading>PowerShell arguments</heading>
<description>Specifies arguments sent to PowerShell.exe.&#10;&#10;By default it is:&#10;-ExecutionPolicy Unrestricted -NoProfile</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpResultMaxLength</name>
<heading>Result maximum length</heading>
<description>Specifies a limit result length in characters which Bot can send back to chat.&#10;&#10;By default it is:&#10;12000 characters</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpAllowedUsersID</name>
<heading>Allowed users id</heading>
<description>Specifies a list of telegram Users` ids, from which Bot can accept commands and execute it.&#10;&#10;By default everyone can send commands to bot.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpAllowedUsersIDEmergency</name>
<heading>Allowed users id for emergency</heading>
<description>Specifies a list of telegram Users` ids, from which Bot can accept /emergency command. This command immediately shuts down service.&#10;&#10;By default everyone can send /emergency to bot.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpAllowedUsersIDReloadConfig</name>
<heading>Allowed users id for reload config</heading>
<description>Specifies a list of telegram Users` ids, from which Bot can accept /reloadconfig command. This command reloads updated information from config.json.&#10;&#10;By default everyone can send /emergency to bot.</description>
<used>Infrabot configuration</used>
</item>
<item>
<name>HelpAllowedUsersIDGetCommands</name>
<heading>Allowed users id for get commands</heading>
<description>Specifies a list of telegram Users` ids, from which Bot can accept /getcommands command. This command shows list of available commandlets.&#10;&#10;By default everyone can send /getcommands to bot.</description>
<used>Infrabot configuration</used>
</item>
</items>
Binary file added infrabot.ConfigEditor/Images/about.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/add.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/exit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/github.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/icon.ico
Binary file not shown.
Binary file added infrabot.ConfigEditor/Images/newfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/openfile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/remove.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added infrabot.ConfigEditor/Images/save.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3a22519

Please sign in to comment.