Skip to content

Instantly share code, notes, and snippets.

@ComputerTech312
Created November 18, 2023 02:40
Show Gist options
  • Save ComputerTech312/3d6a2dcda16c758cca238a86e725932a to your computer and use it in GitHub Desktop.
Save ComputerTech312/3d6a2dcda16c758cca238a86e725932a to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
import os
import sys
def main():
while True:
print("Select the software to install:")
print("1. ZNC")
print("2. Eggdrop")
print("3. Exit")
choice = input("Enter your choice (1-3): ")
if choice == '1':
install_znc()
elif choice == '2':
install_eggdrop()
elif choice == '3':
print("Exiting...")
sys.exit()
else:
print("Invalid choice, please try again.")
def install_znc():
print("Installing ZNC...")
os.system('sudo apt-get update && sudo apt-get install build-essential libssl-dev libperl-dev pkg-config -y')
os.system(f'wget https://znc.in/releases/znc-1.8.2.tar.gz')
os.system(f'tar -xzvf znc-{znc_version}.tar.gz')
os.chdir(f'znc-{znc_version}')
os.system('./configure && make && sudo make install')
print("ZNC installed successfully.")
def install_eggdrop():
os.system(f'sudo apt-get update && sudo apt-get install tcl tcl-dev openssl libssl-dev')
os.system(f'wget http://ftp.eggheads.org/pub/eggdrop/source/1.9/eggdrop-1.9.5.tar.gz')
os.system(f'tar zxvf eggdrop-1.9.5.tar.gz')
os.system(f'cd eggdrop-1.9.5')
os.system(f'./configure')
os.system(f'make config')
os.system(f'make')
os.system(f'make install')
os.system('cd ~/eggdrop')
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment