added strings for installation

pull/85/head
Rilliat 2025-02-02 11:38:34 +00:00
parent 0c5ebe9d45
commit 1736e66ca2
2 changed files with 10 additions and 3 deletions

View File

@ -229,7 +229,14 @@ presets:
settings:
name: "Settings"
choose_installation: ""
installation: "<emoji document_id=5363805650327450240>▪️</emoji> The installation is very easy! Just enter the following in your servers terminal:\n<pre><code class=\"language-bash\">sudo apt update &amp;&amp; sudo apt upgrade -y &amp;&amp; sudo apt install git &amp;&amp; sudo apt install python3-pip &amp;&amp; git clone https://github.com/coddrago/Heroku &amp;&amp; cd Heroku &amp;&amp; pip install -r requirements.txt &amp;&amp; python3 -m hikka</code></pre>\n<emoji document_id=5299027123913105700>😐</emoji> If you dont have sudo access, simply remove the initial steps.\n\n<emoji document_id=5300777464820145682>🥳</emoji> Lets go over a few arguments:\n\n<emoji document_id=5787313834012184077>🔐</emoji> The <code>--root</code> argument allows you to run Heroku as a <b>root user</b>.\n\n<emoji document_id=5785209342986817408>🌎</emoji> The <code>--no-web</code> argument enables login to your account <b>directly in the terminal, rather than through a link</b> <code>{}.lhr.life</code>.\n\n<emoji document_id=5471895949804575096>🤲</emoji> However, if you want to migrate from hikariatama Hikka, download this module:\n<pre><code class=\"language-heroku\">{prefix}dlm https://raw.githubusercontent.com/coddrago/modules/main/SwitchToHeroku.py</code></pre>\nIt completely safe and will help you upgrade to Heroku automatically"
termux_install: "😲 <b>How to install Heroku on Termux?</b>\n⬜ <b>Download Termux from</b> <a href="https://f-droid.org/repo/com.termux_118.apk">the link</a> <b>. ⚠️ The version from Play Market will not work!</b>\n⬜ <b>Copy the command into it:</b> <code>termux-wake-lock &amp;&amp; export AIOHTTP_NO_EXTENSIONS=1 &amp;&amp; pkg upgr -y &amp;&amp; pkg install tur-repo &amp;&amp; pkg update &amp;&amp; pkg install python3.10 &amp;&amp; pkg i wget ncurses-utils python3.10 -y &amp;&amp; pkg update &amp;&amp; pkg install openssl -y &amp;&amp; pkg install git &amp;&amp; clear &amp;&amp; git clone https://github.com/coddrago/Heroku &amp;&amp; cd Heroku &amp;&amp; pip install -r requirements.txt &amp;&amp; python3.10 -m hikka --no-web</code>\n⬜ <b>Answer "y" to everything the script asks</b>\n⬜ <b>Follow the instructions in the script.</b>\n\n⬜ <b>Where to get API_ID and API_HASH?</b> 🎬 <a href="https://youtu.be/DcqDA249Lhg?t=24">Video</a>"
vds_install: "<pre><code class="language-bash">sudo apt update &amp;&amp; sudo apt upgrade -y &amp;&amp; sudo apt install git &amp;&amp; sudo apt install python3-pip &amp;&amp; git clone https://github.com/coddrago/Heroku &amp;&amp; cd Heroku &amp;&amp; pip install -r requirements.txt &amp;&amp; python3 -m hikka</code></pre>"
railway_install: "Image for RailWay:\nhttps://railway.com/template/2YO_QL?referralCode=RfzFur\n\nBe careful! Any userbots are officially prohibited on RailWay, if your account is banned, neither the creator nor other people are to blame for this."
jamhost_install: "Proceed to @jamhostbot, type <code>/pay</code> and follow its instructions"
module_switch: "<pre><code class="language-heroku">dlm https://raw.githubusercontent.com/coddrago/modules/main/SwitchToHeroku.py</code></pre>"
userland_install: "<b>Install UserLAnd from</b> <a href="https://play.google.com/store/apps/details?id=tech.ula">the link</a>\n\n<b>Open it, choose Ubuntu —&gt; Minimal —&gt; Terminal</b>\n\n<b>Wait for the distribution to install, you can pour some tea</b>\n\n<b>After successful installation, a terminal will open in front of you, write there:</b>\n<pre><code class="language-shell">sudo apt update &amp;&amp; sudo apt upgrade -y &amp;&amp; sudo apt install python3 git python3-pip -y &amp;&amp; git clone https://github.com/coddrago/Heroku &amp;&amp; cd Heroku &amp;&amp; sudo pip install -r requirements.txt &amp;&amp; python3 -m hikka</code></pre>\n\n<b>At the end of the installation, a link will appear, follow it and enter your account details to log in.\n\nVoila! You have installed Heroku on UserLAnd.</b>"
too_many_args: "<emoji document_id=5210952531676504517>🚫</emoji> <b>Too many args</b>"
blacklisted: "<emoji document_id=5197474765387864959>👍</emoji> <b>Chat {} blacklisted from userbot</b>"
unblacklisted: "<emoji document_id=5197474765387864959>👍</emoji> <b>Chat {} unblacklisted from userbot</b>"

View File

@ -292,7 +292,9 @@ class CoreMod(loader.Module):
args = utils.get_args_raw(message)
if not args:
if not args and not self.inline.form(
self.strings("choose_installation")
):
await self.client.send_file(
message.peer_id,
"https://imgur.com/a/HrrFair.png",
@ -309,5 +311,3 @@ class CoreMod(loader.Module):
await utils.answer(message, self.strings["module_switch"])
elif "-u" in args:
await utils.answer(message, self.strings["userland_install"])
await message.delete()