The Simple, Fast & Beautiful Programming Language for Everyone
Project description
🚀 MRG Language
The Simple, Fast & Beautiful Programming Language for Everyone
✨ Features
- 🎯 เขียนง่าย - ไม่ต้องใช้
{}[](),. - 🇹🇭 รองรับภาษาไทย - เขียนโค้ดเป็นภาษาไทยได้เต็มรูปแบบ
- ⚡ เบาและเร็ว - Performance สูง กินแรมน้อย
- 🤖 Discord Bot - สร้างบอท Discord ได้ง่ายมาก
- 📦 Package Manager - จัดการ modules สะดวก
- 💡 ไม่ซับซ้อน - เหมาะสำหรับมือใหม่
📦 การติดตั้ง
pip install mrglang
🎮 Quick Start
1. ติดตั้ง Discord Module
mrg install discord.mrg
2. สร้างบอท Discord
สร้างไฟล์ bot.mrg:
# บอท Discord ภาษาไทย
bot MyAwesomeBot
token YOUR_BOT_TOKEN_HERE
prefix !
on ready
print บอทออนไลน์แล้ว!
set status online
set activity เล่นกับ MRG
command สวัสดี
reply สวัสดีครับ! ยินดีต้อนรับ 👋
command ping
reply Pong! 🏓
command ข้อมูล
embed
title ข้อมูลเซิร์ฟเวอร์
description เซิร์ฟเวอร์นี้เจ๋งมาก
color blue
field สมาชิก {member_count} คน
footer ขอโดย {user_name}
send embed
command เมนู
reply เลือกเมนูด้านล่าง
button Primary หน้าหลัก btn_main
button Success ช่วยเหลือ btn_help
send buttons
on button click btn_main
reply ยินดีต้อนรับสู่หน้าหลัก! 🏠
on button click btn_help
reply ต้องการความช่วยเหลือใช่ไหม? 💡
3. รันบอท
mrg run bot.mrg
📚 คำสั่งทั้งหมด
Package Management
mrg install <package> # ติดตั้ง package
mrg i <package> # ติดตั้ง (แบบสั้น)
mrg i pkg1 pkg2 pkg3 # ติดตั้งหลาย packages พร้อมกัน
mrg uninstall <package> # ถอนการติดตั้ง
mrg list # แสดง packages ที่ติดตั้ง
mrg search <keyword> # ค้นหา packages
mrg info <package> # ดูข้อมูล package
mrg update # อัพเดท package registry
Running
mrg run <file.mrg> # รันไฟล์ .mrg
Information
mrg version # เช็คเวอร์ชัน
mrg help # ดูคำสั่งทั้งหมด
📦 Packages ที่มี
- discord.mrg - Discord Bot Module
- http.mrg - HTTP Client
- file.mrg - File System Operations
- json.mrg - JSON Parser
- database.mrg - SQLite Database
- math.mrg - Math Functions
- crypto.mrg - Cryptography
- image.mrg - Image Processing
📖 ตัวอย่างเพิ่มเติม
HTTP Request
import http.mrg
command ราคาบิทคอยน์
response = http get https://api.coindesk.com/v1/bpi/currentprice.json
reply ราคาบิทคอยน์: {response.bpi.USD.rate} USD
File Operations
import file.mrg
command บันทึก
file write data.txt สวัสดีจาก MRG
reply บันทึกสำเร็จ!
Database
import database.mrg
command เพิ่มผู้ใช้
db connect users.db
db insert users name {user_name}
reply เพิ่มผู้ใช้สำเร็จ!
🤝 Contributing
เรายินดีรับ contribution!
- Fork the repo
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
MIT License - ดูรายละเอียดใน LICENSE
🔗 Links
💖 Support
ถ้าชอบโปรเจกต์นี้ กด ⭐ บน GitHub ได้เลยครับ!
Made with ❤️ by MRG Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mrglang-1.0.0.tar.gz
(13.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
mrglang-1.0.0-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file mrglang-1.0.0.tar.gz.
File metadata
- Download URL: mrglang-1.0.0.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a333fbd66bcd820134d86108ccba63dc50621ec3745bff7fb09e845d605eaa90
|
|
| MD5 |
3a0a7dd75935c31405484d4b2b5f620a
|
|
| BLAKE2b-256 |
2c2d9540685475aeb1effa90139bea741275381323d09a919372d4ffae4b986c
|
File details
Details for the file mrglang-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mrglang-1.0.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1ad1477a8d8decf1f2f720110f1dbe7eaa6ad997f5b53c5c81946d3e2dce20
|
|
| MD5 |
71c69cea05d115f846627a3cc6f208df
|
|
| BLAKE2b-256 |
56583503a05ebdba8e7d914afc843ab1a9e944b95d3b8c2d31b33ad679ba72c8
|