Code Monkey home page Code Monkey logo

cv4pve-botgram's People

Contributors

franklupo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cv4pve-botgram's Issues

restoring lxc/vm by one command?

Is it possible to make command to restore lxc/vm from last backup? for example script can parse all backups by date and pick fresher for restore
i've make backup schedule for entire all pve in some cases need to restore my lxc/vm where i can't to ssh/http.

"/shutdown" works not correctly

Hi! the "/shutdown" command does not work correctly - it offers to shut down the already shut down vm/lxc, in the same way as the "/stop" command
photo_2022-09-11 01 55 59

API Token flag throws Null Reference Exception when used on CLI

When running the latest binary via CLI (version 1.4.6) it returns this exception when attempting to use the --api-token command line option.
Replacing the --api-token with --username="root@pam" --password="<whatever>" does not cause the exception to occur.

System.NullReferenceException
Object reference not set to an instance of an object.
   at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.GetPasswordFromOption(CommandLineApplication command)
   at Corsinvest.ProxmoxVE.TelegramBot.Program.<>c__DisplayClass0_0.<Main>b__0()
   at McMaster.Extensions.CommandLineUtils.CommandLineApplicationExtensions.<>c__DisplayClass9_0.<OnExecute>b__0()
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>c__DisplayClass144_0.<OnExecute>b__0(CancellationToken _)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
   at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)

Command line:
# ./cv4pve-botgram --host pve.lan --api-token 'root@pam!botgram=<WHATEVER>' --token '12345:AAABBBCCCDDD' --chatsId 123456

Bot token invalid format exception

Hi,
thank you for your work. Unfortunately it is not working for me.
New created bot tokens throw a invalid format exception.

image

image

I tried it with several tokens but always with the same result.

I assume it has something to do with the ID exceeding the INT range. A token with shorter ID from an older bot is working fine.

Maybe it is related with this issue
openhab/openhab-addons#11732

Steps to reproduce:

  1. Generate new bot
  2. Copy token
  3. Start program with new token
  4. Exception

Access to bot

HI! At the moment, everyone who writes to the bot can execute commands on PVE.
Please add verification of the user/group from whom you can receive messages

'System.Dynamic.ExpandoObject' does not contain a definition for 'data'

Ciao!
Qualsiasi comando tento di utilizzare la risposta è sempre questa:
Error execute command! 'System.Dynamic.ExpandoObject' does not contain a definition for 'data'
Ad esempio ho provato /vmshutdown, poi /vmshutdown 100 oppure /vmshutdown nomevm ma l'errore è sempre quello.
Sbaglio qualcosa e c'è qualche documentazione disponibile o non funziona più con le nuove versioni di proxmox?


HI!
Whatever command I try to use the response is always this:
Error execute command! 'System.Dynamic.ExpandoObject' does not contain a definition for 'data'
For example I tried /vmshutdown, then /vmshutdown 100 or /vmshutdown vmname but the error is always the same.
Am I doing something wrong and is there any documentation available or does it no longer work with new versions of proxmox?

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.