Giter VIP home page Giter VIP logo

xubot's Introduction

CodeFactor Build status Libraries.io dependency status for GitHub repo Custom badge
License GitHub top language GitHub code size in bytes Lines of code GitHub repo size GitHub release (latest by date) GitHub commit activity


Joke Badges

Click to expand

forthebadge forthebadge forthebadge forthebadge forthebadge

forthebadge forthebadge forthebadge forthebadge forthebadge

forthebadge forthebadge forthebadge forthebadge forthebadge forthebadge

forthebadge forthebadge

Building (.NET)

Use xubot-core to build with .NET. You need .NET 7.0 on the target machine.

In the project directory, run this to compile to DLLs for various platforms:

dotnet publish

You run it by running this with xubot.dll:

dotnet xubot.dll

If the publish provides it, you can also run the bot with the executable named xubot (i.e xubot.exe, ./xubot). For Linux, make sure the execute rights are set on the file.

The binary depends on certain files within its directory. These can be found in the config example folder.

For a full runtime ID list, use Microsoft's catalog.

Confirmed working on: Windows 10 x64, macOS 13.4 (Apple Silicon), Ubuntu LTS, Debian (published as linux-x64)

License

The source code provided here on GitHub is licensed under AGPLv3. You can look at the license here.

xubot's People

Contributors

deepsourcebot avatar dependabot[bot] avatar wamwoowam avatar xubiod avatar

Watchers

 avatar  avatar  avatar

Forkers

wamwoowam

xubot's Issues

Optimize xubot\src\Picture.cs

xml document parsing can be optimized

currently the parsing is mostly individual per file that needs it.

this can be optimized with the general tools class, i.e.

GeneralTools.XML.AddRefresh(filename, /* rest of arguments */);

Fix 7 Style issues in xubot\src\Commands.cs

CodeFactor found multiple issues:

A closing curly bracket must not be preceded by a blank line.

xubot\src\Commands.cs:87
xubot\src\Commands.cs:557
xubot\src\Commands.cs:1037
xubot\src\Commands.cs:1469

An opening curly bracket must not be followed by a blank line.

xubot\src\Commands.cs:47

A documentation header line must not be followed by a blank line.

xubot\src\Commands.cs:1149

Using static directives must be placed after using namespace directives.

xubot\src\Commands.cs:19

MOOD.CS HAS YANDEREDEV CODE IF/ELSE IF/ELSE BLOCKS

FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX FIX

Optimize xubot\src\Commands.cs

CodeFactor found multiple issues:

Duplicate Code

xubot\src\Commands.cs:1487-1534
xubot\src\Commands.cs:1558-1605

Insert parentheses within the arithmetic expression to declare the operator precedence.

xubot\src\Commands.cs:452

A line may only contain a single statement.

xubot\src\Commands.cs:647
xubot\src\Commands.cs:708
xubot\src\Commands.cs:723
xubot\src\Commands.cs:733
xubot\src\Commands.cs:931

Complex Method

xubot\src\Commands.cs:496-522

Complex Code

xubot\src\Commands.cs

Optimize & fix 3 Duplication issues in xubot\src\RuntimeReports.cs

Optimize xubot\src\Compile.cs

Optimize xubot\src\RedditGet.cs

Fix 22 Maintainability issues in xubot\src\RedditGet.cs

reddit command is broken

it throws an exception, and the length of the list of posts is always 0

i suspect it could be the redirect uri, but need more evidence

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.