├── README.md ├── LICENSE ├── cogs └── Deneme.py ├── .gitignore └── beyin.py /README.md: -------------------------------------------------------------------------------- 1 | PyPI version info PyPI supported Python versions 2 | # discord.py-altyapi 3 | Discord.py için kullanışlı bir alt yapı 4 | [Discord Sunucumuz](https://discord.gg/WznBqc2) 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Kong 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /cogs/Deneme.py: -------------------------------------------------------------------------------- 1 | ''' 2 | MIT License 3 | 4 | Copyright (c) 2020 Kong 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | ''' 24 | 25 | from discord.ext import commands 26 | import discord 27 | from random import seçenek 28 | class emirhan(commands.Cog): 29 | def __init__(self, bot): 30 | self.bot = bot 31 | 32 | @commands.Cog.listener() 33 | async def on_message(self, message): 34 | try: 35 | print(str(message.author)+": "+str(message.content)) 36 | except Exception: 37 | print(str(message.author)+":") 38 | 39 | if "sa" in message.clean_content.lower(): 40 | await message.channel.send(seçenek(["ALEYKÜM SELAM", "as", "as kardeşim"])) 41 | def setup(bot): 42 | bot.add_cog(emirhan(bot)) 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | -------------------------------------------------------------------------------- /beyin.py: -------------------------------------------------------------------------------- 1 | ''' 2 | MIT License 3 | 4 | Copyright (c) 2020 Kong 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | önemli açıklama bu kod Kong tarafından yazılmıştır izin verilmeyen kişiler tarafından paylaşılması kesinlikte yasaktır 25 | nasıl çalıştırılır; 26 | python un kendi sitesinde python u indirin ardından cmd yi açın sonra dosya konumuna girin ardından python beyin.py yazın Not:Tokeni girmeyi unutmayın 27 | Dosya konumundan nasıl açılır? 28 | Cevap: https://prnt.sc/rh3v1j burdaki yeri ctrl+a yapıp siliyoruz ardından cmd yazıyoruz 29 | ''' 30 | import discord #Bu satır hata verirse terminale/cmd ye python3 -m pip install discord.py yazın //CODARE 31 | from discord.ext import commands #NOT KIMISINI OKUYUN KONG/EMİRHAN SARAÇ 32 | from discord.utils import find #Token son satırlarda 33 | import random #NOT KIMISINI OKUYUN KONG/EMİRHAN SARAÇ 34 | import asyncio 35 | import platform 36 | #en son satıra token yazıyorsunuz nereye yazacağını belirtim 37 | 38 | def prefix(bot, message): 39 | 40 | # gayet basit bir şekilde prefix eklenebiliyor 41 | prefixler = ['!', '!!', 'k!'] 42 | 43 | # mesaj dm den mi yoksa sunucudan mı gelmiş ona bakar 44 | if not message.guild: 45 | # sadece dm için ? kullanmaya açık 46 | return '?' 47 | 48 | 49 | return commands.when_mentioned_or(*prefixler)(bot, message) 50 | 51 | komutlar = ['cogs.deneme'] 52 | ''' 53 | üstdeki komutlar kısmında cogs da açtığınız py dosyasının ismini gireceksiniz örneğin; 54 | komutlar = ['cogs.emirhan', 55 | 'cogs.deneme', 56 | 'cogs.ban'] 57 | gibi 58 | ''' 59 | 60 | bot = commands.Bot(command_prefix=prefix, description='örnek') 61 | 62 | if __name__ == '__main__': 63 | for extension in komutlar: 64 | bot.load_extension(extension) 65 | 66 | # bot açıldığında bilgileri konsolda göstermeye yarar 67 | @bot.event 68 | async def on_ready(): 69 | print('-------------------------') 70 | print('Giriş Yaptım!') 71 | print('Botun İsmi : ' + bot.user.name) 72 | print('ID : ' + str(bot.user.id)) 73 | print(f"discord.py versiyon: {discord.__version__}") 74 | print(f"Python versiyon: {platform.python_version()}") 75 | print(f"Çalışma Yeri: {platform.system()} v{platform.version()}") 76 | print("Bot Komut Bilgileri\nKomut Sayısı {0}.Komutlarda aktif {1} \n".format( 77 | str(len(bot.cogs)), str(len(bot.commands)))) 78 | print('Made by Kong') 79 | print('-------------------------') 80 | await bot.change_presence(status=discord.Status.online, activity=discord.Game("Video")) #oynuyoru buradn değişebilirsiniz 81 | 82 | # burdan token girebilrisiniz Kong 83 | bot.run('') 84 | --------------------------------------------------------------------------------