Skip to content

Telegram integrated shell bot to keep track over ROM builds

Notifications You must be signed in to change notification settings

SwapnilSoni1999/buildbot_script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buildbot Script(MEGA version)

How to use:

  1. Get your bot API key from Telegram's BotFather
  2. Assign BOT API Key in bot-mega.config
        export BOT_API_KEY=ABCD12345:12345AbCDefghIJK
  1. Create a public group and add your bot there then assign group tag
        export CHAT_ID=@groupname
  1. Assign your configs for eg. to build LineageOS for h930(LG v30 h930)
        # Configs
        ROM=lineage
        DEVICE=h930
  1. Assign your Manual Configs (info for Telegram post)
        # Manual Configs 
	A_VERSION="Android 10"
	
	TG_NAME="@N7\_BADA"
	FULL_ROM_NAME="Corvus OS"
	FULL_DEVICE_NAME="LG v30 H930"
	BUILD_DATE=$(date +%Y-%m-%d)
	BUILD_TYPE="Bot Build"
	NOTES="Not Tested!"
  1. Assign your # Directories to create on MEGA shows up as /Root/$DEVICE_DIR/$ROM_DIR
        # Directories
	DEVICE_DIR="H930"
	ROM_DIR="Corvus"
  1. After all the above is set, Here's an example of the Output on Telegram after running the bot-mega.sh:

Output Example

  1. Extra 1, output.sh posts a test output on Telegram,
        # Extra
        bash output.sh        
  1. Extra 2, repost.sh will reupload or fetch the link of the latest build and post it on Telegram.
        # Extra
        bash repost.sh        

(PS: in some cases like AEX,Corvus,Derpfest build command is mka aex, make corvus, mka kronic according to aex, corvus, derpfest build docs, you can change build command from line 18 and 19`)

        ------------------------------------------------

Buildbot Script(GDrive version)

How to use:

  1. Get your bot API key from Telegram's BotFather
  2. Assign BOT API Key in bot.config
        export BOT_API_KEY=ABCD12345:12345AbCDefghIJK
  1. Create a public group and add your bot there then assign group tag
        export CHAT_ID=@groupname
  1. Assign your configs for eg. to build LineageOS for mido(Redmi note 4)
        # Configs
        ROMM=lineage
        DEBICE=mido
        VENDUR=xiaomi
  1. Misc Changes (these configs will be sent as message and wont affect any change in build) ZIPNAM will send package name to send BUILD_TAIP will set build type for eg. Test or Alpha NOTES will attach your message or note to send over telegram

(PS: in some cases like AEX build command is mka aex according to aex build docs, you can change build command from here`)

About

Telegram integrated shell bot to keep track over ROM builds

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages